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

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

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

origin: software.amazon.awssdk/events

  @Override
  public EcsParameters build() {
    return new EcsParameters(this);
  }
}
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("EcsParameters").add("TaskDefinitionArn", taskDefinitionArn()).add("TaskCount", taskCount())
      .add("LaunchType", launchTypeAsString()).add("NetworkConfiguration", networkConfiguration())
      .add("PlatformVersion", platformVersion()).add("Group", group()).build();
}
origin: software.amazon.awssdk/events

public final EcsParameters.Builder getEcsParameters() {
  return ecsParameters != null ? ecsParameters.toBuilder() : null;
}
origin: software.amazon.awssdk/events

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof EcsParameters)) {
    return false;
  }
  EcsParameters other = (EcsParameters) obj;
  return Objects.equals(taskDefinitionArn(), other.taskDefinitionArn()) && Objects.equals(taskCount(), other.taskCount());
}
origin: aws/aws-sdk-java-v2

/**
 * <p>
 * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task.
 * For more information about Amazon ECS tasks, see <a
 * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a>
 * in the <i>Amazon EC2 Container Service Developer Guide</i>.
 * </p>
 * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to
 * create one manually via {@link EcsParameters#builder()}.
 *
 * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its
 * result is passed to {@link #ecsParameters(EcsParameters)}.
 * 
 * @param ecsParameters
 *        a consumer that will call methods on {@link EcsParameters.Builder}
 * @return Returns a reference to this object so that method calls can be chained together.
 * @see #ecsParameters(EcsParameters)
 */
default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) {
  return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build());
}
origin: software.amazon.awssdk/events

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

  /**
   * <p>
   * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task.
   * For more information about Amazon ECS tasks, see <a
   * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a>
   * in the <i>Amazon EC2 Container Service Developer Guide</i>.
   * </p>
   * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to
   * create one manually via {@link EcsParameters#builder()}.
   *
   * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its
   * result is passed to {@link #ecsParameters(EcsParameters)}.
   * 
   * @param ecsParameters
   *        a consumer that will call methods on {@link EcsParameters.Builder}
   * @return Returns a reference to this object so that method calls can be chained together.
   * @see #ecsParameters(EcsParameters)
   */
  default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) {
    return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build());
  }
}
origin: software.amazon.awssdk/cloudwatchevents

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(taskDefinitionArn());
  hashCode = 31 * hashCode + Objects.hashCode(taskCount());
  hashCode = 31 * hashCode + Objects.hashCode(launchTypeAsString());
  hashCode = 31 * hashCode + Objects.hashCode(networkConfiguration());
  hashCode = 31 * hashCode + Objects.hashCode(platformVersion());
  hashCode = 31 * hashCode + Objects.hashCode(group());
  return hashCode;
}
origin: software.amazon.awssdk/events

@Override
public String toString() {
  return ToString.builder("EcsParameters").add("TaskDefinitionArn", taskDefinitionArn()).add("TaskCount", taskCount())
      .build();
}
origin: software.amazon.awssdk/cloudwatchevents

/**
 * <p>
 * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task.
 * For more information about Amazon ECS tasks, see <a
 * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a>
 * in the <i>Amazon EC2 Container Service Developer Guide</i>.
 * </p>
 * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to
 * create one manually via {@link EcsParameters#builder()}.
 *
 * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its
 * result is passed to {@link #ecsParameters(EcsParameters)}.
 * 
 * @param ecsParameters
 *        a consumer that will call methods on {@link EcsParameters.Builder}
 * @return Returns a reference to this object so that method calls can be chained together.
 * @see #ecsParameters(EcsParameters)
 */
default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) {
  return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build());
}
origin: software.amazon.awssdk/cloudwatchevents

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

public final EcsParameters.Builder getEcsParameters() {
  return ecsParameters != null ? ecsParameters.toBuilder() : null;
}
origin: aws/aws-sdk-java-v2

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(taskDefinitionArn());
  hashCode = 31 * hashCode + Objects.hashCode(taskCount());
  hashCode = 31 * hashCode + Objects.hashCode(launchTypeAsString());
  hashCode = 31 * hashCode + Objects.hashCode(networkConfiguration());
  hashCode = 31 * hashCode + Objects.hashCode(platformVersion());
  hashCode = 31 * hashCode + Objects.hashCode(group());
  return hashCode;
}
origin: software.amazon.awssdk/events

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

public EcsParameters unmarshall(JsonUnmarshallerContext context) throws Exception {
  EcsParameters.Builder ecsParametersBuilder = EcsParameters.builder();
origin: aws/aws-sdk-java-v2

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

public final EcsParameters.Builder getEcsParameters() {
  return ecsParameters != null ? ecsParameters.toBuilder() : null;
}
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 EcsParameters)) {
    return false;
  }
  EcsParameters other = (EcsParameters) obj;
  return Objects.equals(taskDefinitionArn(), other.taskDefinitionArn()) && Objects.equals(taskCount(), other.taskCount())
      && Objects.equals(launchTypeAsString(), other.launchTypeAsString())
      && Objects.equals(networkConfiguration(), other.networkConfiguration())
      && Objects.equals(platformVersion(), other.platformVersion()) && Objects.equals(group(), other.group());
}
origin: software.amazon.awssdk/events

  /**
   * Marshall the given parameter object
   */
  public void marshall(EcsParameters ecsParameters, ProtocolMarshaller protocolMarshaller) {
    Validate.paramNotNull(ecsParameters, "ecsParameters");
    Validate.paramNotNull(protocolMarshaller, "protocolMarshaller");
    try {
      protocolMarshaller.marshall(ecsParameters.taskDefinitionArn(), TASKDEFINITIONARN_BINDING);
      protocolMarshaller.marshall(ecsParameters.taskCount(), TASKCOUNT_BINDING);
    } catch (Exception e) {
      throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
    }
  }
}
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("EcsParameters").add("TaskDefinitionArn", taskDefinitionArn()).add("TaskCount", taskCount())
      .add("LaunchType", launchTypeAsString()).add("NetworkConfiguration", networkConfiguration())
      .add("PlatformVersion", platformVersion()).add("Group", group()).build();
}
software.amazon.awssdk.services.cloudwatchevents.modelEcsParameters

Javadoc

The custom parameters to be used when the target is an Amazon ECS task.

Most used methods

  • <init>
  • builder
  • taskCount
    The number of tasks to create based on the TaskDefinition. The default is one.
  • taskDefinitionArn
    The ARN of the task definition to use if the event target is an Amazon ECS cluster.
  • toBuilder
  • group
    Specifies an ECS task group for the task. The maximum length is 255 characters.
  • launchTypeAsString
    Specifies the launch type on which your task is running. The launch type that you specify here must
  • networkConfiguration
    Use this structure if the ECS task uses the awsvpc network mode. This structure specifies the VPC s
  • platformVersion
    Specifies the platform version for the task. Specify only the numeric portion of the platform versi

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Runner (org.openjdk.jmh.runner)
  • CodeWhisperer alternatives
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