@Override public EcsParameters build() { return new EcsParameters(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. */ @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(); }
public final EcsParameters.Builder getEcsParameters() { return ecsParameters != null ? ecsParameters.toBuilder() : null; }
@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()); }
/** * <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()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(taskDefinitionArn()); hashCode = 31 * hashCode + Objects.hashCode(taskCount()); return hashCode; }
/** * <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()); } }
@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; }
@Override public String toString() { return ToString.builder("EcsParameters").add("TaskDefinitionArn", taskDefinitionArn()).add("TaskCount", taskCount()) .build(); }
/** * <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()); }
@Override public EcsParameters build() { return new EcsParameters(this); }
public final EcsParameters.Builder getEcsParameters() { return ecsParameters != null ? ecsParameters.toBuilder() : null; }
@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; }
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(); } }
public EcsParameters unmarshall(JsonUnmarshallerContext context) throws Exception { EcsParameters.Builder ecsParametersBuilder = EcsParameters.builder();
@Override public EcsParameters build() { return new EcsParameters(this); }
public final EcsParameters.Builder getEcsParameters() { return ecsParameters != null ? ecsParameters.toBuilder() : null; }
@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()); }
/** * 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(); } } }
/** * 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(); }