All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.sfn.model.ExecutionStartedEventDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Step Functions module holds the client classes that are used for communicating with AWS Step Functions.

There is a newer version: 2.0.0-preview-11
Show newest version
/*
 * Copyright 2012-2017 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 software.amazon.awssdk.services.sfn.model;

import javax.annotation.Generated;
import software.amazon.awssdk.annotation.SdkInternalApi;
import software.amazon.awssdk.protocol.ProtocolMarshaller;
import software.amazon.awssdk.protocol.StructuredPojo;
import software.amazon.awssdk.services.sfn.transform.ExecutionStartedEventDetailsMarshaller;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 */
@Generated("software.amazon.awssdk:codegen")
public class ExecutionStartedEventDetails implements StructuredPojo,
        ToCopyableBuilder {
    private final String input;

    private final String roleArn;

    private ExecutionStartedEventDetails(BuilderImpl builder) {
        this.input = builder.input;
        this.roleArn = builder.roleArn;
    }

    /**
     * 

* The JSON data input to the execution. *

* * @return The JSON data input to the execution. */ public String input() { return input; } /** *

* The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda tasks. *

* * @return The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda tasks. */ public String roleArn() { return roleArn; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + ((input() == null) ? 0 : input().hashCode()); hashCode = 31 * hashCode + ((roleArn() == null) ? 0 : roleArn().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ExecutionStartedEventDetails)) { return false; } ExecutionStartedEventDetails other = (ExecutionStartedEventDetails) obj; if (other.input() == null ^ this.input() == null) { return false; } if (other.input() != null && !other.input().equals(this.input())) { return false; } if (other.roleArn() == null ^ this.roleArn() == null) { return false; } if (other.roleArn() != null && !other.roleArn().equals(this.roleArn())) { return false; } return true; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (input() != null) { sb.append("Input: ").append(input()).append(","); } if (roleArn() != null) { sb.append("RoleArn: ").append(roleArn()).append(","); } sb.append("}"); return sb.toString(); } @SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { ExecutionStartedEventDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } public interface Builder extends CopyableBuilder { /** *

* The JSON data input to the execution. *

* * @param input * The JSON data input to the execution. * @return Returns a reference to this object so that method calls can be chained together. */ Builder input(String input); /** *

* The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda tasks. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda tasks. * @return Returns a reference to this object so that method calls can be chained together. */ Builder roleArn(String roleArn); } private static final class BuilderImpl implements Builder { private String input; private String roleArn; private BuilderImpl() { } private BuilderImpl(ExecutionStartedEventDetails model) { setInput(model.input); setRoleArn(model.roleArn); } public final String getInput() { return input; } @Override public final Builder input(String input) { this.input = input; return this; } public final void setInput(String input) { this.input = input; } public final String getRoleArn() { return roleArn; } @Override public final Builder roleArn(String roleArn) { this.roleArn = roleArn; return this; } public final void setRoleArn(String roleArn) { this.roleArn = roleArn; } @Override public ExecutionStartedEventDetails build() { return new ExecutionStartedEventDetails(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy