Tabnine Logo
RunCommandTarget
Code IndexAdd Tabnine to your IDE (free)

How to use
RunCommandTarget
in
software.amazon.awssdk.services.cloudwatchevents.model

Best Java code snippets using software.amazon.awssdk.services.cloudwatchevents.model.RunCommandTarget (Showing top 20 results out of 315)

origin: aws/aws-sdk-java-v2

@Override
public RunCommandTarget build() {
  return new RunCommandTarget(this);
}
origin: aws/aws-sdk-java-v2

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(key());
  hashCode = 31 * hashCode + Objects.hashCode(values());
  return hashCode;
}
origin: software.amazon.awssdk/cloudwatchevents

@Override
@SafeVarargs
public final Builder runCommandTargets(Consumer<RunCommandTarget.Builder>... runCommandTargets) {
  runCommandTargets(Stream.of(runCommandTargets).map(c -> RunCommandTarget.builder().applyMutation(c).build())
      .collect(Collectors.toList()));
  return this;
}
origin: aws/aws-sdk-java-v2

@Override
@SafeVarargs
public final Builder runCommandTargets(Consumer<RunCommandTarget.Builder>... runCommandTargets) {
  runCommandTargets(Stream.of(runCommandTargets).map(c -> RunCommandTarget.builder().applyMutation(c).build())
      .collect(Collectors.toList()));
  return this;
}
origin: aws/aws-sdk-java-v2

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof RunCommandTarget)) {
    return false;
  }
  RunCommandTarget other = (RunCommandTarget) obj;
  return Objects.equals(key(), other.key()) && Objects.equals(values(), other.values());
}
origin: software.amazon.awssdk/events

@Override
@SafeVarargs
public final Builder runCommandTargets(Consumer<RunCommandTarget.Builder>... runCommandTargets) {
  runCommandTargets(Stream.of(runCommandTargets).map(c -> RunCommandTarget.builder().applyMutation(c).build())
      .collect(Collectors.toList()));
  return this;
}
origin: software.amazon.awssdk/events

  @Override
  public RunCommandTarget build() {
    return new RunCommandTarget(this);
  }
}
origin: software.amazon.awssdk/cloudwatchevents

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(key());
  hashCode = 31 * hashCode + Objects.hashCode(values());
  return hashCode;
}
origin: software.amazon.awssdk/events

public RunCommandTarget unmarshall(JsonUnmarshallerContext context) throws Exception {
  RunCommandTarget.Builder runCommandTargetBuilder = RunCommandTarget.builder();
origin: software.amazon.awssdk/cloudwatchevents

@Override
public RunCommandTarget build() {
  return new RunCommandTarget(this);
}
origin: software.amazon.awssdk/cloudwatchevents

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof RunCommandTarget)) {
    return false;
  }
  RunCommandTarget other = (RunCommandTarget) obj;
  return Objects.equals(key(), other.key()) && Objects.equals(values(), other.values());
}
origin: software.amazon.awssdk/events

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof RunCommandTarget)) {
    return false;
  }
  RunCommandTarget other = (RunCommandTarget) obj;
  return Objects.equals(key(), other.key()) && Objects.equals(values(), other.values());
}
origin: software.amazon.awssdk/events

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(key());
  hashCode = 31 * hashCode + Objects.hashCode(values());
  return hashCode;
}
origin: software.amazon.awssdk/cloudwatchevents

/**
 * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
 * redacted from this string using a placeholder value.
 */
@Override
public String toString() {
  return ToString.builder("RunCommandTarget").add("Key", key()).add("Values", values()).build();
}
origin: aws/aws-sdk-java-v2

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "Key":
    return Optional.ofNullable(clazz.cast(key()));
  case "Values":
    return Optional.ofNullable(clazz.cast(values()));
  default:
    return Optional.empty();
  }
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
 * redacted from this string using a placeholder value.
 */
@Override
public String toString() {
  return ToString.builder("RunCommandTarget").add("Key", key()).add("Values", values()).build();
}
origin: software.amazon.awssdk/events

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "Key":
    return Optional.ofNullable(clazz.cast(key()));
  case "Values":
    return Optional.ofNullable(clazz.cast(values()));
  default:
    return Optional.empty();
  }
}
origin: software.amazon.awssdk/cloudwatchevents

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "Key":
    return Optional.ofNullable(clazz.cast(key()));
  case "Values":
    return Optional.ofNullable(clazz.cast(values()));
  default:
    return Optional.empty();
  }
}
origin: software.amazon.awssdk/events

@Override
public String toString() {
  return ToString.builder("RunCommandTarget").add("Key", key()).add("Values", values()).build();
}
origin: software.amazon.awssdk/events

  /**
   * Marshall the given parameter object
   */
  public void marshall(RunCommandTarget runCommandTarget, ProtocolMarshaller protocolMarshaller) {
    Validate.paramNotNull(runCommandTarget, "runCommandTarget");
    Validate.paramNotNull(protocolMarshaller, "protocolMarshaller");
    try {
      protocolMarshaller.marshall(runCommandTarget.key(), KEY_BINDING);
      protocolMarshaller.marshall(runCommandTarget.values(), VALUES_BINDING);
    } catch (Exception e) {
      throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
    }
  }
}
software.amazon.awssdk.services.cloudwatchevents.modelRunCommandTarget

Javadoc

Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each RunCommandTarget block can include only one key, but this key may specify multiple values.

Most used methods

  • <init>
  • builder
  • key
    Can be either tag: tag-key or InstanceIds.
  • values
    If Key is tag: tag-key, Values is a list of tag values. IfKey is InstanceIds, Values is a list of

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now