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

com.amazonaws.services.elasticmapreduce.model.JobFlowDetail Maven / Gradle / Ivy

/*
 * Copyright 2010-2014 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.elasticmapreduce.model;

import java.io.Serializable;

/**
 * 

* A description of a job flow. *

*/ public class JobFlowDetail implements Serializable { /** * The job flow identifier. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String jobFlowId; /** * The name of the job flow. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String name; /** * The location in Amazon S3 where log files for the job are stored. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String logUri; /** * The version of the AMI used to initialize Amazon EC2 instances in the * job flow. For a list of AMI versions currently supported by Amazon * ElasticMapReduce, go to AMI * Versions Supported in Elastic MapReduce in the Amazon Elastic * MapReduce Developer's Guide. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String amiVersion; /** * Describes the execution status of the job flow. */ private JobFlowExecutionStatusDetail executionStatusDetail; /** * Describes the Amazon EC2 instances of the job flow. */ private JobFlowInstancesDetail instances; /** * A list of steps run by the job flow. */ private com.amazonaws.internal.ListWithAutoConstructFlag steps; /** * A list of the bootstrap actions run by the job flow. */ private com.amazonaws.internal.ListWithAutoConstructFlag bootstrapActions; /** * A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. */ private com.amazonaws.internal.ListWithAutoConstructFlag supportedProducts; /** * Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. */ private Boolean visibleToAllUsers; /** * The IAM role that was specified when the job flow was launched. The * EC2 instances of the job flow assume this role. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String jobFlowRole; /** * The IAM role that will be assumed by the Amazon EMR service to access * AWS resources on your behalf. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String serviceRole; /** * Default constructor for a new JobFlowDetail object. Callers should use the * setter or fluent setter (with...) methods to initialize this object after creating it. */ public JobFlowDetail() {} /** * Constructs a new JobFlowDetail object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param jobFlowId The job flow identifier. * @param name The name of the job flow. * @param executionStatusDetail Describes the execution status of the job * flow. * @param instances Describes the Amazon EC2 instances of the job flow. */ public JobFlowDetail(String jobFlowId, String name, JobFlowExecutionStatusDetail executionStatusDetail, JobFlowInstancesDetail instances) { setJobFlowId(jobFlowId); setName(name); setExecutionStatusDetail(executionStatusDetail); setInstances(instances); } /** * The job flow identifier. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The job flow identifier. */ public String getJobFlowId() { return jobFlowId; } /** * The job flow identifier. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param jobFlowId The job flow identifier. */ public void setJobFlowId(String jobFlowId) { this.jobFlowId = jobFlowId; } /** * The job flow identifier. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param jobFlowId The job flow identifier. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withJobFlowId(String jobFlowId) { this.jobFlowId = jobFlowId; return this; } /** * The name of the job flow. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The name of the job flow. */ public String getName() { return name; } /** * The name of the job flow. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param name The name of the job flow. */ public void setName(String name) { this.name = name; } /** * The name of the job flow. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param name The name of the job flow. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withName(String name) { this.name = name; return this; } /** * The location in Amazon S3 where log files for the job are stored. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The location in Amazon S3 where log files for the job are stored. */ public String getLogUri() { return logUri; } /** * The location in Amazon S3 where log files for the job are stored. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param logUri The location in Amazon S3 where log files for the job are stored. */ public void setLogUri(String logUri) { this.logUri = logUri; } /** * The location in Amazon S3 where log files for the job are stored. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param logUri The location in Amazon S3 where log files for the job are stored. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withLogUri(String logUri) { this.logUri = logUri; return this; } /** * The version of the AMI used to initialize Amazon EC2 instances in the * job flow. For a list of AMI versions currently supported by Amazon * ElasticMapReduce, go to AMI * Versions Supported in Elastic MapReduce in the Amazon Elastic * MapReduce Developer's Guide. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The version of the AMI used to initialize Amazon EC2 instances in the * job flow. For a list of AMI versions currently supported by Amazon * ElasticMapReduce, go to AMI * Versions Supported in Elastic MapReduce in the Amazon Elastic * MapReduce Developer's Guide. */ public String getAmiVersion() { return amiVersion; } /** * The version of the AMI used to initialize Amazon EC2 instances in the * job flow. For a list of AMI versions currently supported by Amazon * ElasticMapReduce, go to AMI * Versions Supported in Elastic MapReduce in the Amazon Elastic * MapReduce Developer's Guide. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param amiVersion The version of the AMI used to initialize Amazon EC2 instances in the * job flow. For a list of AMI versions currently supported by Amazon * ElasticMapReduce, go to AMI * Versions Supported in Elastic MapReduce in the Amazon Elastic * MapReduce Developer's Guide. */ public void setAmiVersion(String amiVersion) { this.amiVersion = amiVersion; } /** * The version of the AMI used to initialize Amazon EC2 instances in the * job flow. For a list of AMI versions currently supported by Amazon * ElasticMapReduce, go to AMI * Versions Supported in Elastic MapReduce in the Amazon Elastic * MapReduce Developer's Guide. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 256
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param amiVersion The version of the AMI used to initialize Amazon EC2 instances in the * job flow. For a list of AMI versions currently supported by Amazon * ElasticMapReduce, go to AMI * Versions Supported in Elastic MapReduce in the Amazon Elastic * MapReduce Developer's Guide. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withAmiVersion(String amiVersion) { this.amiVersion = amiVersion; return this; } /** * Describes the execution status of the job flow. * * @return Describes the execution status of the job flow. */ public JobFlowExecutionStatusDetail getExecutionStatusDetail() { return executionStatusDetail; } /** * Describes the execution status of the job flow. * * @param executionStatusDetail Describes the execution status of the job flow. */ public void setExecutionStatusDetail(JobFlowExecutionStatusDetail executionStatusDetail) { this.executionStatusDetail = executionStatusDetail; } /** * Describes the execution status of the job flow. *

* Returns a reference to this object so that method calls can be chained together. * * @param executionStatusDetail Describes the execution status of the job flow. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withExecutionStatusDetail(JobFlowExecutionStatusDetail executionStatusDetail) { this.executionStatusDetail = executionStatusDetail; return this; } /** * Describes the Amazon EC2 instances of the job flow. * * @return Describes the Amazon EC2 instances of the job flow. */ public JobFlowInstancesDetail getInstances() { return instances; } /** * Describes the Amazon EC2 instances of the job flow. * * @param instances Describes the Amazon EC2 instances of the job flow. */ public void setInstances(JobFlowInstancesDetail instances) { this.instances = instances; } /** * Describes the Amazon EC2 instances of the job flow. *

* Returns a reference to this object so that method calls can be chained together. * * @param instances Describes the Amazon EC2 instances of the job flow. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withInstances(JobFlowInstancesDetail instances) { this.instances = instances; return this; } /** * A list of steps run by the job flow. * * @return A list of steps run by the job flow. */ public java.util.List getSteps() { if (steps == null) { steps = new com.amazonaws.internal.ListWithAutoConstructFlag(); steps.setAutoConstruct(true); } return steps; } /** * A list of steps run by the job flow. * * @param steps A list of steps run by the job flow. */ public void setSteps(java.util.Collection steps) { if (steps == null) { this.steps = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag stepsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(steps.size()); stepsCopy.addAll(steps); this.steps = stepsCopy; } /** * A list of steps run by the job flow. *

* Returns a reference to this object so that method calls can be chained together. * * @param steps A list of steps run by the job flow. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withSteps(StepDetail... steps) { if (getSteps() == null) setSteps(new java.util.ArrayList(steps.length)); for (StepDetail value : steps) { getSteps().add(value); } return this; } /** * A list of steps run by the job flow. *

* Returns a reference to this object so that method calls can be chained together. * * @param steps A list of steps run by the job flow. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withSteps(java.util.Collection steps) { if (steps == null) { this.steps = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag stepsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(steps.size()); stepsCopy.addAll(steps); this.steps = stepsCopy; } return this; } /** * A list of the bootstrap actions run by the job flow. * * @return A list of the bootstrap actions run by the job flow. */ public java.util.List getBootstrapActions() { if (bootstrapActions == null) { bootstrapActions = new com.amazonaws.internal.ListWithAutoConstructFlag(); bootstrapActions.setAutoConstruct(true); } return bootstrapActions; } /** * A list of the bootstrap actions run by the job flow. * * @param bootstrapActions A list of the bootstrap actions run by the job flow. */ public void setBootstrapActions(java.util.Collection bootstrapActions) { if (bootstrapActions == null) { this.bootstrapActions = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag bootstrapActionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(bootstrapActions.size()); bootstrapActionsCopy.addAll(bootstrapActions); this.bootstrapActions = bootstrapActionsCopy; } /** * A list of the bootstrap actions run by the job flow. *

* Returns a reference to this object so that method calls can be chained together. * * @param bootstrapActions A list of the bootstrap actions run by the job flow. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withBootstrapActions(BootstrapActionDetail... bootstrapActions) { if (getBootstrapActions() == null) setBootstrapActions(new java.util.ArrayList(bootstrapActions.length)); for (BootstrapActionDetail value : bootstrapActions) { getBootstrapActions().add(value); } return this; } /** * A list of the bootstrap actions run by the job flow. *

* Returns a reference to this object so that method calls can be chained together. * * @param bootstrapActions A list of the bootstrap actions run by the job flow. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withBootstrapActions(java.util.Collection bootstrapActions) { if (bootstrapActions == null) { this.bootstrapActions = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag bootstrapActionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(bootstrapActions.size()); bootstrapActionsCopy.addAll(bootstrapActions); this.bootstrapActions = bootstrapActionsCopy; } return this; } /** * A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. * * @return A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. */ public java.util.List getSupportedProducts() { if (supportedProducts == null) { supportedProducts = new com.amazonaws.internal.ListWithAutoConstructFlag(); supportedProducts.setAutoConstruct(true); } return supportedProducts; } /** * A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. * * @param supportedProducts A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. */ public void setSupportedProducts(java.util.Collection supportedProducts) { if (supportedProducts == null) { this.supportedProducts = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag supportedProductsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(supportedProducts.size()); supportedProductsCopy.addAll(supportedProducts); this.supportedProducts = supportedProductsCopy; } /** * A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. *

* Returns a reference to this object so that method calls can be chained together. * * @param supportedProducts A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withSupportedProducts(String... supportedProducts) { if (getSupportedProducts() == null) setSupportedProducts(new java.util.ArrayList(supportedProducts.length)); for (String value : supportedProducts) { getSupportedProducts().add(value); } return this; } /** * A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. *

* Returns a reference to this object so that method calls can be chained together. * * @param supportedProducts A list of strings set by third party software when the job flow is * launched. If you are not using third party software to manage the job * flow this value is empty. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withSupportedProducts(java.util.Collection supportedProducts) { if (supportedProducts == null) { this.supportedProducts = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag supportedProductsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(supportedProducts.size()); supportedProductsCopy.addAll(supportedProducts); this.supportedProducts = supportedProductsCopy; } return this; } /** * Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. * * @return Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. */ public Boolean isVisibleToAllUsers() { return visibleToAllUsers; } /** * Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. * * @param visibleToAllUsers Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. */ public void setVisibleToAllUsers(Boolean visibleToAllUsers) { this.visibleToAllUsers = visibleToAllUsers; } /** * Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. *

* Returns a reference to this object so that method calls can be chained together. * * @param visibleToAllUsers Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withVisibleToAllUsers(Boolean visibleToAllUsers) { this.visibleToAllUsers = visibleToAllUsers; return this; } /** * Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. * * @return Specifies whether the job flow is visible to all IAM users of the AWS * account associated with the job flow. If this value is set to * true, all IAM users of that AWS account can view and (if * they have the proper policy permissions set) manage the job flow. If * it is set to false, only the IAM user that created the * job flow can view and manage it. This value can be changed using the * SetVisibleToAllUsers action. */ public Boolean getVisibleToAllUsers() { return visibleToAllUsers; } /** * The IAM role that was specified when the job flow was launched. The * EC2 instances of the job flow assume this role. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The IAM role that was specified when the job flow was launched. The * EC2 instances of the job flow assume this role. */ public String getJobFlowRole() { return jobFlowRole; } /** * The IAM role that was specified when the job flow was launched. The * EC2 instances of the job flow assume this role. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param jobFlowRole The IAM role that was specified when the job flow was launched. The * EC2 instances of the job flow assume this role. */ public void setJobFlowRole(String jobFlowRole) { this.jobFlowRole = jobFlowRole; } /** * The IAM role that was specified when the job flow was launched. The * EC2 instances of the job flow assume this role. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param jobFlowRole The IAM role that was specified when the job flow was launched. The * EC2 instances of the job flow assume this role. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withJobFlowRole(String jobFlowRole) { this.jobFlowRole = jobFlowRole; return this; } /** * The IAM role that will be assumed by the Amazon EMR service to access * AWS resources on your behalf. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The IAM role that will be assumed by the Amazon EMR service to access * AWS resources on your behalf. */ public String getServiceRole() { return serviceRole; } /** * The IAM role that will be assumed by the Amazon EMR service to access * AWS resources on your behalf. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param serviceRole The IAM role that will be assumed by the Amazon EMR service to access * AWS resources on your behalf. */ public void setServiceRole(String serviceRole) { this.serviceRole = serviceRole; } /** * The IAM role that will be assumed by the Amazon EMR service to access * AWS resources on your behalf. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 10280
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param serviceRole The IAM role that will be assumed by the Amazon EMR service to access * AWS resources on your behalf. * * @return A reference to this updated object so that method calls can be chained * together. */ public JobFlowDetail withServiceRole(String serviceRole) { this.serviceRole = serviceRole; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getJobFlowId() != null) sb.append("JobFlowId: " + getJobFlowId() + ","); if (getName() != null) sb.append("Name: " + getName() + ","); if (getLogUri() != null) sb.append("LogUri: " + getLogUri() + ","); if (getAmiVersion() != null) sb.append("AmiVersion: " + getAmiVersion() + ","); if (getExecutionStatusDetail() != null) sb.append("ExecutionStatusDetail: " + getExecutionStatusDetail() + ","); if (getInstances() != null) sb.append("Instances: " + getInstances() + ","); if (getSteps() != null) sb.append("Steps: " + getSteps() + ","); if (getBootstrapActions() != null) sb.append("BootstrapActions: " + getBootstrapActions() + ","); if (getSupportedProducts() != null) sb.append("SupportedProducts: " + getSupportedProducts() + ","); if (isVisibleToAllUsers() != null) sb.append("VisibleToAllUsers: " + isVisibleToAllUsers() + ","); if (getJobFlowRole() != null) sb.append("JobFlowRole: " + getJobFlowRole() + ","); if (getServiceRole() != null) sb.append("ServiceRole: " + getServiceRole() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobFlowId() == null) ? 0 : getJobFlowId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getLogUri() == null) ? 0 : getLogUri().hashCode()); hashCode = prime * hashCode + ((getAmiVersion() == null) ? 0 : getAmiVersion().hashCode()); hashCode = prime * hashCode + ((getExecutionStatusDetail() == null) ? 0 : getExecutionStatusDetail().hashCode()); hashCode = prime * hashCode + ((getInstances() == null) ? 0 : getInstances().hashCode()); hashCode = prime * hashCode + ((getSteps() == null) ? 0 : getSteps().hashCode()); hashCode = prime * hashCode + ((getBootstrapActions() == null) ? 0 : getBootstrapActions().hashCode()); hashCode = prime * hashCode + ((getSupportedProducts() == null) ? 0 : getSupportedProducts().hashCode()); hashCode = prime * hashCode + ((isVisibleToAllUsers() == null) ? 0 : isVisibleToAllUsers().hashCode()); hashCode = prime * hashCode + ((getJobFlowRole() == null) ? 0 : getJobFlowRole().hashCode()); hashCode = prime * hashCode + ((getServiceRole() == null) ? 0 : getServiceRole().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JobFlowDetail == false) return false; JobFlowDetail other = (JobFlowDetail)obj; if (other.getJobFlowId() == null ^ this.getJobFlowId() == null) return false; if (other.getJobFlowId() != null && other.getJobFlowId().equals(this.getJobFlowId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getLogUri() == null ^ this.getLogUri() == null) return false; if (other.getLogUri() != null && other.getLogUri().equals(this.getLogUri()) == false) return false; if (other.getAmiVersion() == null ^ this.getAmiVersion() == null) return false; if (other.getAmiVersion() != null && other.getAmiVersion().equals(this.getAmiVersion()) == false) return false; if (other.getExecutionStatusDetail() == null ^ this.getExecutionStatusDetail() == null) return false; if (other.getExecutionStatusDetail() != null && other.getExecutionStatusDetail().equals(this.getExecutionStatusDetail()) == false) return false; if (other.getInstances() == null ^ this.getInstances() == null) return false; if (other.getInstances() != null && other.getInstances().equals(this.getInstances()) == false) return false; if (other.getSteps() == null ^ this.getSteps() == null) return false; if (other.getSteps() != null && other.getSteps().equals(this.getSteps()) == false) return false; if (other.getBootstrapActions() == null ^ this.getBootstrapActions() == null) return false; if (other.getBootstrapActions() != null && other.getBootstrapActions().equals(this.getBootstrapActions()) == false) return false; if (other.getSupportedProducts() == null ^ this.getSupportedProducts() == null) return false; if (other.getSupportedProducts() != null && other.getSupportedProducts().equals(this.getSupportedProducts()) == false) return false; if (other.isVisibleToAllUsers() == null ^ this.isVisibleToAllUsers() == null) return false; if (other.isVisibleToAllUsers() != null && other.isVisibleToAllUsers().equals(this.isVisibleToAllUsers()) == false) return false; if (other.getJobFlowRole() == null ^ this.getJobFlowRole() == null) return false; if (other.getJobFlowRole() != null && other.getJobFlowRole().equals(this.getJobFlowRole()) == false) return false; if (other.getServiceRole() == null ^ this.getServiceRole() == null) return false; if (other.getServiceRole() != null && other.getServiceRole().equals(this.getServiceRole()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy