
com.amazonaws.services.stepfunctions.model.UpdateStateMachineRequest Maven / Gradle / Ivy
/*
* Copyright 2015-2020 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.stepfunctions.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateStateMachineRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the state machine.
*
*/
private String stateMachineArn;
/**
*
* The Amazon States Language definition of the state machine. See Amazon States
* Language.
*
*/
private String definition;
/**
*
* The Amazon Resource Name (ARN) of the IAM role of the state machine.
*
*/
private String roleArn;
/**
*
* The LoggingConfiguration
data type is used to set CloudWatch Logs options.
*
*/
private LoggingConfiguration loggingConfiguration;
/**
*
* The Amazon Resource Name (ARN) of the state machine.
*
*
* @param stateMachineArn
* The Amazon Resource Name (ARN) of the state machine.
*/
public void setStateMachineArn(String stateMachineArn) {
this.stateMachineArn = stateMachineArn;
}
/**
*
* The Amazon Resource Name (ARN) of the state machine.
*
*
* @return The Amazon Resource Name (ARN) of the state machine.
*/
public String getStateMachineArn() {
return this.stateMachineArn;
}
/**
*
* The Amazon Resource Name (ARN) of the state machine.
*
*
* @param stateMachineArn
* The Amazon Resource Name (ARN) of the state machine.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateStateMachineRequest withStateMachineArn(String stateMachineArn) {
setStateMachineArn(stateMachineArn);
return this;
}
/**
*
* The Amazon States Language definition of the state machine. See Amazon States
* Language.
*
*
* @param definition
* The Amazon States Language definition of the state machine. See Amazon
* States Language.
*/
public void setDefinition(String definition) {
this.definition = definition;
}
/**
*
* The Amazon States Language definition of the state machine. See Amazon States
* Language.
*
*
* @return The Amazon States Language definition of the state machine. See Amazon
* States Language.
*/
public String getDefinition() {
return this.definition;
}
/**
*
* The Amazon States Language definition of the state machine. See Amazon States
* Language.
*
*
* @param definition
* The Amazon States Language definition of the state machine. See Amazon
* States Language.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateStateMachineRequest withDefinition(String definition) {
setDefinition(definition);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role of the state machine.
*
*
* @param roleArn
* The Amazon Resource Name (ARN) of the IAM role of the state machine.
*/
public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role of the state machine.
*
*
* @return The Amazon Resource Name (ARN) of the IAM role of the state machine.
*/
public String getRoleArn() {
return this.roleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role of the state machine.
*
*
* @param roleArn
* The Amazon Resource Name (ARN) of the IAM role of the state machine.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateStateMachineRequest withRoleArn(String roleArn) {
setRoleArn(roleArn);
return this;
}
/**
*
* The LoggingConfiguration
data type is used to set CloudWatch Logs options.
*
*
* @param loggingConfiguration
* The LoggingConfiguration
data type is used to set CloudWatch Logs options.
*/
public void setLoggingConfiguration(LoggingConfiguration loggingConfiguration) {
this.loggingConfiguration = loggingConfiguration;
}
/**
*
* The LoggingConfiguration
data type is used to set CloudWatch Logs options.
*
*
* @return The LoggingConfiguration
data type is used to set CloudWatch Logs options.
*/
public LoggingConfiguration getLoggingConfiguration() {
return this.loggingConfiguration;
}
/**
*
* The LoggingConfiguration
data type is used to set CloudWatch Logs options.
*
*
* @param loggingConfiguration
* The LoggingConfiguration
data type is used to set CloudWatch Logs options.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateStateMachineRequest withLoggingConfiguration(LoggingConfiguration loggingConfiguration) {
setLoggingConfiguration(loggingConfiguration);
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 (getStateMachineArn() != null)
sb.append("StateMachineArn: ").append(getStateMachineArn()).append(",");
if (getDefinition() != null)
sb.append("Definition: ").append("***Sensitive Data Redacted***").append(",");
if (getRoleArn() != null)
sb.append("RoleArn: ").append(getRoleArn()).append(",");
if (getLoggingConfiguration() != null)
sb.append("LoggingConfiguration: ").append(getLoggingConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateStateMachineRequest == false)
return false;
UpdateStateMachineRequest other = (UpdateStateMachineRequest) obj;
if (other.getStateMachineArn() == null ^ this.getStateMachineArn() == null)
return false;
if (other.getStateMachineArn() != null && other.getStateMachineArn().equals(this.getStateMachineArn()) == false)
return false;
if (other.getDefinition() == null ^ this.getDefinition() == null)
return false;
if (other.getDefinition() != null && other.getDefinition().equals(this.getDefinition()) == false)
return false;
if (other.getRoleArn() == null ^ this.getRoleArn() == null)
return false;
if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
return false;
if (other.getLoggingConfiguration() == null ^ this.getLoggingConfiguration() == null)
return false;
if (other.getLoggingConfiguration() != null && other.getLoggingConfiguration().equals(this.getLoggingConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getStateMachineArn() == null) ? 0 : getStateMachineArn().hashCode());
hashCode = prime * hashCode + ((getDefinition() == null) ? 0 : getDefinition().hashCode());
hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
hashCode = prime * hashCode + ((getLoggingConfiguration() == null) ? 0 : getLoggingConfiguration().hashCode());
return hashCode;
}
@Override
public UpdateStateMachineRequest clone() {
return (UpdateStateMachineRequest) super.clone();
}
}