/* * Copyright 2018-2023 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.snowball.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains an array of Amazon Web Services resource objects. Each object represents an Amazon S3 bucket, an Lambda * function, or an Amazon Machine Image (AMI) based on Amazon EC2 that is associated with a particular job. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class JobResource implements Serializable, Cloneable, StructuredPojo { /** *
* An array of S3Resource
objects.
*
* The Python-language Lambda functions for this job. *
*/ private java.util.List* The Amazon Machine Images (AMIs) associated with this job. *
*/ private java.util.List
* An array of S3Resource
objects.
*
S3Resource
objects.
*/
public java.util.List
* An array of S3Resource
objects.
*
S3Resource
objects.
*/
public void setS3Resources(java.util.Collection
* An array of S3Resource
objects.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setS3Resources(java.util.Collection)} or {@link #withS3Resources(java.util.Collection)} if you want to * override the existing values. *
* * @param s3Resources * An array ofS3Resource
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobResource withS3Resources(S3Resource... s3Resources) {
if (this.s3Resources == null) {
setS3Resources(new java.util.ArrayList
* An array of S3Resource
objects.
*
S3Resource
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobResource withS3Resources(java.util.Collection* The Python-language Lambda functions for this job. *
* * @return The Python-language Lambda functions for this job. */ public java.util.List* The Python-language Lambda functions for this job. *
* * @param lambdaResources * The Python-language Lambda functions for this job. */ public void setLambdaResources(java.util.Collection* The Python-language Lambda functions for this job. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLambdaResources(java.util.Collection)} or {@link #withLambdaResources(java.util.Collection)} if you * want to override the existing values. *
* * @param lambdaResources * The Python-language Lambda functions for this job. * @return Returns a reference to this object so that method calls can be chained together. */ public JobResource withLambdaResources(LambdaResource... lambdaResources) { if (this.lambdaResources == null) { setLambdaResources(new java.util.ArrayList* The Python-language Lambda functions for this job. *
* * @param lambdaResources * The Python-language Lambda functions for this job. * @return Returns a reference to this object so that method calls can be chained together. */ public JobResource withLambdaResources(java.util.Collection* The Amazon Machine Images (AMIs) associated with this job. *
* * @return The Amazon Machine Images (AMIs) associated with this job. */ public java.util.List* The Amazon Machine Images (AMIs) associated with this job. *
* * @param ec2AmiResources * The Amazon Machine Images (AMIs) associated with this job. */ public void setEc2AmiResources(java.util.Collection* The Amazon Machine Images (AMIs) associated with this job. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEc2AmiResources(java.util.Collection)} or {@link #withEc2AmiResources(java.util.Collection)} if you * want to override the existing values. *
* * @param ec2AmiResources * The Amazon Machine Images (AMIs) associated with this job. * @return Returns a reference to this object so that method calls can be chained together. */ public JobResource withEc2AmiResources(Ec2AmiResource... ec2AmiResources) { if (this.ec2AmiResources == null) { setEc2AmiResources(new java.util.ArrayList* The Amazon Machine Images (AMIs) associated with this job. *
* * @param ec2AmiResources * The Amazon Machine Images (AMIs) associated with this job. * @return Returns a reference to this object so that method calls can be chained together. */ public JobResource withEc2AmiResources(java.util.Collection