/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.pipes.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The parameters for using an Amazon ECS task as a target. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PipeTargetEcsTaskParameters implements Serializable, Cloneable, StructuredPojo { /** ** The capacity provider strategy to use for the task. *
*
* If a capacityProviderStrategy
is specified, the launchType
parameter must be omitted.
* If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
*
* Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS * Resources in the Amazon Elastic Container Service Developer Guide. *
*/ private Boolean enableECSManagedTags; /** ** Whether or not to enable the execute command functionality for the containers in this task. If true, this enables * execute command functionality on all containers in the task. *
*/ private Boolean enableExecuteCommand; /** ** Specifies an Amazon ECS task group for the task. The maximum length is 255 characters. *
*/ private String group; /** *
* Specifies the launch type on which your task is running. The launch type that you specify here must match one of
* the launch type (compatibilities) of the target task. The FARGATE
value is supported only in the
* Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in
* the Amazon Elastic Container Service Developer Guide.
*
* Use this structure if the Amazon ECS task uses the awsvpc
network mode. This structure specifies the
* VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This
* structure is required if LaunchType
is FARGATE
because the awsvpc
mode is
* required for Fargate tasks.
*
* If you specify NetworkConfiguration
when the target ECS task does not use the awsvpc
* network mode, the task fails.
*
* The overrides that are associated with a task. *
*/ private EcsTaskOverride overrides; /** ** An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task * (including constraints in the task definition and those specified at runtime). *
*/ private java.util.List* The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. *
*/ private java.util.List
* Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as
* 1.1.0
.
*
* This structure is used only if LaunchType
is FARGATE
. For more information about valid
* platform versions, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*
* Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags
* are not propagated. Tags can only be propagated to the task during task creation. To add tags to a task after
* task creation, use the TagResource
API action.
*
* The reference ID to use for the task. *
*/ private String referenceId; /** ** The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and * an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. *
*/ private java.util.List
* The number of tasks to create based on TaskDefinition
. The default is 1.
*
* The ARN of the task definition to use if the event target is an Amazon ECS task. *
*/ private String taskDefinitionArn; /** ** The capacity provider strategy to use for the task. *
*
* If a capacityProviderStrategy
is specified, the launchType
parameter must be omitted.
* If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
*
* If a
* The capacity provider strategy to use for the task.
*
* If a capacityProviderStrategy
is specified, the launchType
parameter must be
* omitted. If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
*/
public java.util.ListcapacityProviderStrategy
is specified, the launchType
parameter must be omitted.
* If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
*
* If a
* The capacity provider strategy to use for the task.
*
* If a
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCapacityProviderStrategy(java.util.Collection)} or
* {@link #withCapacityProviderStrategy(java.util.Collection)} if you want to override the existing values.
* capacityProviderStrategy
is specified, the launchType
parameter must be
* omitted. If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
*/
public void setCapacityProviderStrategy(java.util.CollectioncapacityProviderStrategy
is specified, the launchType
parameter must be omitted.
* If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
*
* If a
* The capacity provider strategy to use for the task.
*
* If a capacityProviderStrategy
is specified, the launchType
parameter must be
* omitted. If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipeTargetEcsTaskParameters withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy) {
if (this.capacityProviderStrategy == null) {
setCapacityProviderStrategy(new java.util.ArrayListcapacityProviderStrategy
is specified, the launchType
parameter must be omitted.
* If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
*
* If a
* Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS
* Resources in the Amazon Elastic Container Service Developer Guide.
*
* Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS
* Resources in the Amazon Elastic Container Service Developer Guide.
*
* Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS
* Resources in the Amazon Elastic Container Service Developer Guide.
*
* Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS
* Resources in the Amazon Elastic Container Service Developer Guide.
*
* Whether or not to enable the execute command functionality for the containers in this task. If true, this enables
* execute command functionality on all containers in the task.
*
* Whether or not to enable the execute command functionality for the containers in this task. If true, this enables
* execute command functionality on all containers in the task.
*
* Whether or not to enable the execute command functionality for the containers in this task. If true, this enables
* execute command functionality on all containers in the task.
*
* Whether or not to enable the execute command functionality for the containers in this task. If true, this enables
* execute command functionality on all containers in the task.
*
* Specifies an Amazon ECS task group for the task. The maximum length is 255 characters.
*
* Specifies an Amazon ECS task group for the task. The maximum length is 255 characters.
*
* Specifies an Amazon ECS task group for the task. The maximum length is 255 characters.
*
* Specifies the launch type on which your task is running. The launch type that you specify here must match one of
* the launch type (compatibilities) of the target task. The
* Specifies the launch type on which your task is running. The launch type that you specify here must match one of
* the launch type (compatibilities) of the target task. The
* Specifies the launch type on which your task is running. The launch type that you specify here must match one of
* the launch type (compatibilities) of the target task. The
* Specifies the launch type on which your task is running. The launch type that you specify here must match one of
* the launch type (compatibilities) of the target task. The
* Use this structure if the Amazon ECS task uses the
* If you specify capacityProviderStrategy
is specified, the launchType
parameter must be
* omitted. If no capacityProviderStrategy
or launchType is specified, the
* defaultCapacityProviderStrategy
for the cluster is used.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipeTargetEcsTaskParameters withCapacityProviderStrategy(java.util.CollectionFARGATE
value is supported only in the
* Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in
* the Amazon Elastic Container Service Developer Guide.
* FARGATE
value is supported
* only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon
* ECS in the Amazon Elastic Container Service Developer Guide.
* @see LaunchType
*/
public void setLaunchType(String launchType) {
this.launchType = launchType;
}
/**
* FARGATE
value is supported only in the
* Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in
* the Amazon Elastic Container Service Developer Guide.
* FARGATE
value is supported
* only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon
* ECS in the Amazon Elastic Container Service Developer Guide.
* @see LaunchType
*/
public String getLaunchType() {
return this.launchType;
}
/**
* FARGATE
value is supported only in the
* Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in
* the Amazon Elastic Container Service Developer Guide.
* FARGATE
value is supported
* only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon
* ECS in the Amazon Elastic Container Service Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LaunchType
*/
public PipeTargetEcsTaskParameters withLaunchType(String launchType) {
setLaunchType(launchType);
return this;
}
/**
* FARGATE
value is supported only in the
* Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in
* the Amazon Elastic Container Service Developer Guide.
* FARGATE
value is supported
* only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon
* ECS in the Amazon Elastic Container Service Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LaunchType
*/
public PipeTargetEcsTaskParameters withLaunchType(LaunchType launchType) {
this.launchType = launchType.toString();
return this;
}
/**
* awsvpc
network mode. This structure specifies the
* VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This
* structure is required if LaunchType
is FARGATE
because the awsvpc
mode is
* required for Fargate tasks.
* NetworkConfiguration
when the target ECS task does not use the awsvpc
* network mode, the task fails.
* awsvpc
network mode. This structure
* specifies the VPC subnets and security groups associated with the task, and whether a public IP address is
* to be used. This structure is required if LaunchType
is FARGATE
because the
* awsvpc
mode is required for Fargate tasks.
* If you specify NetworkConfiguration
when the target ECS task does not use the
* awsvpc
network mode, the task fails.
*/
public void setNetworkConfiguration(NetworkConfiguration networkConfiguration) {
this.networkConfiguration = networkConfiguration;
}
/**
*
* Use this structure if the Amazon ECS task uses the awsvpc
network mode. This structure specifies the
* VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This
* structure is required if LaunchType
is FARGATE
because the awsvpc
mode is
* required for Fargate tasks.
*
* If you specify NetworkConfiguration
when the target ECS task does not use the awsvpc
* network mode, the task fails.
*
awsvpc
network mode. This structure
* specifies the VPC subnets and security groups associated with the task, and whether a public IP address
* is to be used. This structure is required if LaunchType
is FARGATE
because the
* awsvpc
mode is required for Fargate tasks.
*
* If you specify NetworkConfiguration
when the target ECS task does not use the
* awsvpc
network mode, the task fails.
*/
public NetworkConfiguration getNetworkConfiguration() {
return this.networkConfiguration;
}
/**
*
* Use this structure if the Amazon ECS task uses the awsvpc
network mode. This structure specifies the
* VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This
* structure is required if LaunchType
is FARGATE
because the awsvpc
mode is
* required for Fargate tasks.
*
* If you specify NetworkConfiguration
when the target ECS task does not use the awsvpc
* network mode, the task fails.
*
awsvpc
network mode. This structure
* specifies the VPC subnets and security groups associated with the task, and whether a public IP address is
* to be used. This structure is required if LaunchType
is FARGATE
because the
* awsvpc
mode is required for Fargate tasks.
*
* If you specify NetworkConfiguration
when the target ECS task does not use the
* awsvpc
network mode, the task fails.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipeTargetEcsTaskParameters withNetworkConfiguration(NetworkConfiguration networkConfiguration) {
setNetworkConfiguration(networkConfiguration);
return this;
}
/**
*
* The overrides that are associated with a task. *
* * @param overrides * The overrides that are associated with a task. */ public void setOverrides(EcsTaskOverride overrides) { this.overrides = overrides; } /** ** The overrides that are associated with a task. *
* * @return The overrides that are associated with a task. */ public EcsTaskOverride getOverrides() { return this.overrides; } /** ** The overrides that are associated with a task. *
* * @param overrides * The overrides that are associated with a task. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withOverrides(EcsTaskOverride overrides) { setOverrides(overrides); return this; } /** ** An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task * (including constraints in the task definition and those specified at runtime). *
* * @return An array of placement constraint objects to use for the task. You can specify up to 10 constraints per * task (including constraints in the task definition and those specified at runtime). */ public java.util.List* An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task * (including constraints in the task definition and those specified at runtime). *
* * @param placementConstraints * An array of placement constraint objects to use for the task. You can specify up to 10 constraints per * task (including constraints in the task definition and those specified at runtime). */ public void setPlacementConstraints(java.util.Collection* An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task * (including constraints in the task definition and those specified at runtime). *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPlacementConstraints(java.util.Collection)} or {@link #withPlacementConstraints(java.util.Collection)} * if you want to override the existing values. *
* * @param placementConstraints * An array of placement constraint objects to use for the task. You can specify up to 10 constraints per * task (including constraints in the task definition and those specified at runtime). * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withPlacementConstraints(PlacementConstraint... placementConstraints) { if (this.placementConstraints == null) { setPlacementConstraints(new java.util.ArrayList* An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task * (including constraints in the task definition and those specified at runtime). *
* * @param placementConstraints * An array of placement constraint objects to use for the task. You can specify up to 10 constraints per * task (including constraints in the task definition and those specified at runtime). * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withPlacementConstraints(java.util.Collection* The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. *
* * @return The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per * task. */ public java.util.List* The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. *
* * @param placementStrategy * The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per * task. */ public void setPlacementStrategy(java.util.Collection* The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPlacementStrategy(java.util.Collection)} or {@link #withPlacementStrategy(java.util.Collection)} if * you want to override the existing values. *
* * @param placementStrategy * The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per * task. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withPlacementStrategy(PlacementStrategy... placementStrategy) { if (this.placementStrategy == null) { setPlacementStrategy(new java.util.ArrayList* The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. *
* * @param placementStrategy * The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per * task. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withPlacementStrategy(java.util.Collection
* Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as
* 1.1.0
.
*
* This structure is used only if LaunchType
is FARGATE
. For more information about valid
* platform versions, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*
1.1.0
.
*
* This structure is used only if LaunchType
is FARGATE
. For more information about
* valid platform versions, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*/
public void setPlatformVersion(String platformVersion) {
this.platformVersion = platformVersion;
}
/**
*
* Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as
* 1.1.0
.
*
* This structure is used only if LaunchType
is FARGATE
. For more information about valid
* platform versions, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*
1.1.0
.
*
* This structure is used only if LaunchType
is FARGATE
. For more information
* about valid platform versions, see Fargate
* Platform Versions in the Amazon Elastic Container Service Developer Guide.
*/
public String getPlatformVersion() {
return this.platformVersion;
}
/**
*
* Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as
* 1.1.0
.
*
* This structure is used only if LaunchType
is FARGATE
. For more information about valid
* platform versions, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*
1.1.0
.
*
* This structure is used only if LaunchType
is FARGATE
. For more information about
* valid platform versions, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipeTargetEcsTaskParameters withPlatformVersion(String platformVersion) {
setPlatformVersion(platformVersion);
return this;
}
/**
*
* Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags
* are not propagated. Tags can only be propagated to the task during task creation. To add tags to a task after
* task creation, use the TagResource
API action.
*
TagResource
API action.
* @see PropagateTags
*/
public void setPropagateTags(String propagateTags) {
this.propagateTags = propagateTags;
}
/**
*
* Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags
* are not propagated. Tags can only be propagated to the task during task creation. To add tags to a task after
* task creation, use the TagResource
API action.
*
TagResource
API action.
* @see PropagateTags
*/
public String getPropagateTags() {
return this.propagateTags;
}
/**
*
* Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags
* are not propagated. Tags can only be propagated to the task during task creation. To add tags to a task after
* task creation, use the TagResource
API action.
*
TagResource
API action.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PropagateTags
*/
public PipeTargetEcsTaskParameters withPropagateTags(String propagateTags) {
setPropagateTags(propagateTags);
return this;
}
/**
*
* Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags
* are not propagated. Tags can only be propagated to the task during task creation. To add tags to a task after
* task creation, use the TagResource
API action.
*
TagResource
API action.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PropagateTags
*/
public PipeTargetEcsTaskParameters withPropagateTags(PropagateTags propagateTags) {
this.propagateTags = propagateTags.toString();
return this;
}
/**
* * The reference ID to use for the task. *
* * @param referenceId * The reference ID to use for the task. */ public void setReferenceId(String referenceId) { this.referenceId = referenceId; } /** ** The reference ID to use for the task. *
* * @return The reference ID to use for the task. */ public String getReferenceId() { return this.referenceId; } /** ** The reference ID to use for the task. *
* * @param referenceId * The reference ID to use for the task. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withReferenceId(String referenceId) { setReferenceId(referenceId); return this; } /** ** The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and * an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. *
* * @return The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a * key and an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. */ public java.util.List* The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and * an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. *
* * @param tags * The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a * key and an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. */ public void setTags(java.util.Collection* The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and * an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a * key and an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and * an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. *
* * @param tags * The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a * key and an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withTags(java.util.Collection
* The number of tasks to create based on TaskDefinition
. The default is 1.
*
TaskDefinition
. The default is 1.
*/
public void setTaskCount(Integer taskCount) {
this.taskCount = taskCount;
}
/**
*
* The number of tasks to create based on TaskDefinition
. The default is 1.
*
TaskDefinition
. The default is 1.
*/
public Integer getTaskCount() {
return this.taskCount;
}
/**
*
* The number of tasks to create based on TaskDefinition
. The default is 1.
*
TaskDefinition
. The default is 1.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipeTargetEcsTaskParameters withTaskCount(Integer taskCount) {
setTaskCount(taskCount);
return this;
}
/**
* * The ARN of the task definition to use if the event target is an Amazon ECS task. *
* * @param taskDefinitionArn * The ARN of the task definition to use if the event target is an Amazon ECS task. */ public void setTaskDefinitionArn(String taskDefinitionArn) { this.taskDefinitionArn = taskDefinitionArn; } /** ** The ARN of the task definition to use if the event target is an Amazon ECS task. *
* * @return The ARN of the task definition to use if the event target is an Amazon ECS task. */ public String getTaskDefinitionArn() { return this.taskDefinitionArn; } /** ** The ARN of the task definition to use if the event target is an Amazon ECS task. *
* * @param taskDefinitionArn * The ARN of the task definition to use if the event target is an Amazon ECS task. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeTargetEcsTaskParameters withTaskDefinitionArn(String taskDefinitionArn) { setTaskDefinitionArn(taskDefinitionArn); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCapacityProviderStrategy() != null) sb.append("CapacityProviderStrategy: ").append(getCapacityProviderStrategy()).append(","); if (getEnableECSManagedTags() != null) sb.append("EnableECSManagedTags: ").append(getEnableECSManagedTags()).append(","); if (getEnableExecuteCommand() != null) sb.append("EnableExecuteCommand: ").append(getEnableExecuteCommand()).append(","); if (getGroup() != null) sb.append("Group: ").append(getGroup()).append(","); if (getLaunchType() != null) sb.append("LaunchType: ").append(getLaunchType()).append(","); if (getNetworkConfiguration() != null) sb.append("NetworkConfiguration: ").append(getNetworkConfiguration()).append(","); if (getOverrides() != null) sb.append("Overrides: ").append(getOverrides()).append(","); if (getPlacementConstraints() != null) sb.append("PlacementConstraints: ").append(getPlacementConstraints()).append(","); if (getPlacementStrategy() != null) sb.append("PlacementStrategy: ").append(getPlacementStrategy()).append(","); if (getPlatformVersion() != null) sb.append("PlatformVersion: ").append(getPlatformVersion()).append(","); if (getPropagateTags() != null) sb.append("PropagateTags: ").append(getPropagateTags()).append(","); if (getReferenceId() != null) sb.append("ReferenceId: ").append("***Sensitive Data Redacted***").append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getTaskCount() != null) sb.append("TaskCount: ").append(getTaskCount()).append(","); if (getTaskDefinitionArn() != null) sb.append("TaskDefinitionArn: ").append(getTaskDefinitionArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PipeTargetEcsTaskParameters == false) return false; PipeTargetEcsTaskParameters other = (PipeTargetEcsTaskParameters) obj; if (other.getCapacityProviderStrategy() == null ^ this.getCapacityProviderStrategy() == null) return false; if (other.getCapacityProviderStrategy() != null && other.getCapacityProviderStrategy().equals(this.getCapacityProviderStrategy()) == false) return false; if (other.getEnableECSManagedTags() == null ^ this.getEnableECSManagedTags() == null) return false; if (other.getEnableECSManagedTags() != null && other.getEnableECSManagedTags().equals(this.getEnableECSManagedTags()) == false) return false; if (other.getEnableExecuteCommand() == null ^ this.getEnableExecuteCommand() == null) return false; if (other.getEnableExecuteCommand() != null && other.getEnableExecuteCommand().equals(this.getEnableExecuteCommand()) == false) return false; if (other.getGroup() == null ^ this.getGroup() == null) return false; if (other.getGroup() != null && other.getGroup().equals(this.getGroup()) == false) return false; if (other.getLaunchType() == null ^ this.getLaunchType() == null) return false; if (other.getLaunchType() != null && other.getLaunchType().equals(this.getLaunchType()) == false) return false; if (other.getNetworkConfiguration() == null ^ this.getNetworkConfiguration() == null) return false; if (other.getNetworkConfiguration() != null && other.getNetworkConfiguration().equals(this.getNetworkConfiguration()) == false) return false; if (other.getOverrides() == null ^ this.getOverrides() == null) return false; if (other.getOverrides() != null && other.getOverrides().equals(this.getOverrides()) == false) return false; if (other.getPlacementConstraints() == null ^ this.getPlacementConstraints() == null) return false; if (other.getPlacementConstraints() != null && other.getPlacementConstraints().equals(this.getPlacementConstraints()) == false) return false; if (other.getPlacementStrategy() == null ^ this.getPlacementStrategy() == null) return false; if (other.getPlacementStrategy() != null && other.getPlacementStrategy().equals(this.getPlacementStrategy()) == false) return false; if (other.getPlatformVersion() == null ^ this.getPlatformVersion() == null) return false; if (other.getPlatformVersion() != null && other.getPlatformVersion().equals(this.getPlatformVersion()) == false) return false; if (other.getPropagateTags() == null ^ this.getPropagateTags() == null) return false; if (other.getPropagateTags() != null && other.getPropagateTags().equals(this.getPropagateTags()) == false) return false; if (other.getReferenceId() == null ^ this.getReferenceId() == null) return false; if (other.getReferenceId() != null && other.getReferenceId().equals(this.getReferenceId()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getTaskCount() == null ^ this.getTaskCount() == null) return false; if (other.getTaskCount() != null && other.getTaskCount().equals(this.getTaskCount()) == false) return false; if (other.getTaskDefinitionArn() == null ^ this.getTaskDefinitionArn() == null) return false; if (other.getTaskDefinitionArn() != null && other.getTaskDefinitionArn().equals(this.getTaskDefinitionArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCapacityProviderStrategy() == null) ? 0 : getCapacityProviderStrategy().hashCode()); hashCode = prime * hashCode + ((getEnableECSManagedTags() == null) ? 0 : getEnableECSManagedTags().hashCode()); hashCode = prime * hashCode + ((getEnableExecuteCommand() == null) ? 0 : getEnableExecuteCommand().hashCode()); hashCode = prime * hashCode + ((getGroup() == null) ? 0 : getGroup().hashCode()); hashCode = prime * hashCode + ((getLaunchType() == null) ? 0 : getLaunchType().hashCode()); hashCode = prime * hashCode + ((getNetworkConfiguration() == null) ? 0 : getNetworkConfiguration().hashCode()); hashCode = prime * hashCode + ((getOverrides() == null) ? 0 : getOverrides().hashCode()); hashCode = prime * hashCode + ((getPlacementConstraints() == null) ? 0 : getPlacementConstraints().hashCode()); hashCode = prime * hashCode + ((getPlacementStrategy() == null) ? 0 : getPlacementStrategy().hashCode()); hashCode = prime * hashCode + ((getPlatformVersion() == null) ? 0 : getPlatformVersion().hashCode()); hashCode = prime * hashCode + ((getPropagateTags() == null) ? 0 : getPropagateTags().hashCode()); hashCode = prime * hashCode + ((getReferenceId() == null) ? 0 : getReferenceId().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTaskCount() == null) ? 0 : getTaskCount().hashCode()); hashCode = prime * hashCode + ((getTaskDefinitionArn() == null) ? 0 : getTaskDefinitionArn().hashCode()); return hashCode; } @Override public PipeTargetEcsTaskParameters clone() { try { return (PipeTargetEcsTaskParameters) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.pipes.model.transform.PipeTargetEcsTaskParametersMarshaller.getInstance().marshall(this, protocolMarshaller); } }