/* * 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.iotanalytics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information required to run the containerAction
to produce dataset contents.
*
* The ARN of the Docker container stored in your account. The Docker container contains an application and required * support libraries and is used to generate dataset contents. *
*/ private String image; /** *
* The ARN of the role that gives permission to the system to access required resources to run the
* containerAction
. This includes, at minimum, permission to retrieve the dataset contents that are the
* input to the containerized application.
*
* Configuration of the resource that executes the containerAction
.
*
* The values of variables used in the context of the execution of the containerized application (basically,
* parameters passed to the application). Each variable must have a name and a value given by one of
* stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
*
* The ARN of the Docker container stored in your account. The Docker container contains an application and required * support libraries and is used to generate dataset contents. *
* * @param image * The ARN of the Docker container stored in your account. The Docker container contains an application and * required support libraries and is used to generate dataset contents. */ public void setImage(String image) { this.image = image; } /** ** The ARN of the Docker container stored in your account. The Docker container contains an application and required * support libraries and is used to generate dataset contents. *
* * @return The ARN of the Docker container stored in your account. The Docker container contains an application and * required support libraries and is used to generate dataset contents. */ public String getImage() { return this.image; } /** ** The ARN of the Docker container stored in your account. The Docker container contains an application and required * support libraries and is used to generate dataset contents. *
* * @param image * The ARN of the Docker container stored in your account. The Docker container contains an application and * required support libraries and is used to generate dataset contents. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerDatasetAction withImage(String image) { setImage(image); return this; } /** *
* The ARN of the role that gives permission to the system to access required resources to run the
* containerAction
. This includes, at minimum, permission to retrieve the dataset contents that are the
* input to the containerized application.
*
containerAction
. This includes, at minimum, permission to retrieve the dataset contents that
* are the input to the containerized application.
*/
public void setExecutionRoleArn(String executionRoleArn) {
this.executionRoleArn = executionRoleArn;
}
/**
*
* The ARN of the role that gives permission to the system to access required resources to run the
* containerAction
. This includes, at minimum, permission to retrieve the dataset contents that are the
* input to the containerized application.
*
containerAction
. This includes, at minimum, permission to retrieve the dataset contents that
* are the input to the containerized application.
*/
public String getExecutionRoleArn() {
return this.executionRoleArn;
}
/**
*
* The ARN of the role that gives permission to the system to access required resources to run the
* containerAction
. This includes, at minimum, permission to retrieve the dataset contents that are the
* input to the containerized application.
*
containerAction
. This includes, at minimum, permission to retrieve the dataset contents that
* are the input to the containerized application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ContainerDatasetAction withExecutionRoleArn(String executionRoleArn) {
setExecutionRoleArn(executionRoleArn);
return this;
}
/**
*
* Configuration of the resource that executes the containerAction
.
*
containerAction
.
*/
public void setResourceConfiguration(ResourceConfiguration resourceConfiguration) {
this.resourceConfiguration = resourceConfiguration;
}
/**
*
* Configuration of the resource that executes the containerAction
.
*
containerAction
.
*/
public ResourceConfiguration getResourceConfiguration() {
return this.resourceConfiguration;
}
/**
*
* Configuration of the resource that executes the containerAction
.
*
containerAction
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ContainerDatasetAction withResourceConfiguration(ResourceConfiguration resourceConfiguration) {
setResourceConfiguration(resourceConfiguration);
return this;
}
/**
*
* The values of variables used in the context of the execution of the containerized application (basically,
* parameters passed to the application). Each variable must have a name and a value given by one of
* stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
*
stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
*/
public java.util.List
* The values of variables used in the context of the execution of the containerized application (basically,
* parameters passed to the application). Each variable must have a name and a value given by one of
* stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
*
stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
*/
public void setVariables(java.util.Collection
* The values of variables used in the context of the execution of the containerized application (basically,
* parameters passed to the application). Each variable must have a name and a value given by one of
* stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setVariables(java.util.Collection)} or {@link #withVariables(java.util.Collection)} if you want to * override the existing values. *
* * @param variables * The values of variables used in the context of the execution of the containerized application (basically, * parameters passed to the application). Each variable must have a name and a value given by one of *stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ContainerDatasetAction withVariables(Variable... variables) {
if (this.variables == null) {
setVariables(new java.util.ArrayList
* The values of variables used in the context of the execution of the containerized application (basically,
* parameters passed to the application). Each variable must have a name and a value given by one of
* stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
*
stringValue
, datasetContentVersionValue
, or outputFileUriValue
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ContainerDatasetAction withVariables(java.util.Collection