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-2011 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;

/**
 * 

* A description of a job flow. *

*/ public class JobFlowDetail { /** * 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; /** * 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 java.util.List steps; /** * A list of the bootstrap actions run by the job flow. */ private java.util.List bootstrapActions; /** * 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) { this.jobFlowId = jobFlowId; this.name = name; this.executionStatusDetail = executionStatusDetail; this.instances = 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; } /** * 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 java.util.ArrayList(); } 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) { java.util.List stepsCopy = new java.util.ArrayList(); if (steps != null) { 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) { 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) { java.util.List stepsCopy = new java.util.ArrayList(); if (steps != null) { 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 java.util.ArrayList(); } 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) { java.util.List bootstrapActionsCopy = new java.util.ArrayList(); if (bootstrapActions != null) { 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) { 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) { java.util.List bootstrapActionsCopy = new java.util.ArrayList(); if (bootstrapActions != null) { bootstrapActionsCopy.addAll(bootstrapActions); } this.bootstrapActions = bootstrapActionsCopy; 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("{"); sb.append("JobFlowId: " + jobFlowId + ", "); sb.append("Name: " + name + ", "); sb.append("LogUri: " + logUri + ", "); sb.append("ExecutionStatusDetail: " + executionStatusDetail + ", "); sb.append("Instances: " + instances + ", "); sb.append("Steps: " + steps + ", "); sb.append("BootstrapActions: " + bootstrapActions + ", "); sb.append("}"); return sb.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy