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

com.amazonaws.services.kinesisanalytics.model.CreateApplicationRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Kinesis module holds the client classes that are used for communicating with Amazon Kinesis Service

There is a newer version: 1.12.765
Show newest version
/*
 * 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.kinesisanalytics.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* TBD *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateApplicationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* Name of your Amazon Kinesis Analytics application (for example, sample-app). *

*/ private String applicationName; /** *

* Summary description of the application. *

*/ private String applicationDescription; /** *

* Use this parameter to configure the application input. *

*

* You can configure your application to receive input from a single streaming source. In this configuration, you * map this streaming source to an in-application stream that is created. Your application code can then query the * in-application stream like a table (you can think of it as a constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for * example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to read * this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a schematized * version used in SQL. In the schema, you provide the necessary mapping of the data elements in the streaming * source to record columns in the in-app stream. *

*/ private java.util.List inputs; /** *

* You can configure application output to write data from any of the in-application streams to up to three * destinations. *

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda function * Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that * Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, * you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that * Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf. *

*/ private java.util.List outputs; /** *

* Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For more * information, see Working * with Amazon CloudWatch Logs. *

*/ private java.util.List cloudWatchLoggingOptions; /** *

* One or more SQL statements that read input data, transform it, and generate output. For example, you can write a * SQL statement that reads data from one in-application stream, generates a running average of the number of * advertisement clicks by vendor, and insert resulting rows in another in-application stream using pumps. For more * information about the typical pattern, see Application Code. *

*

* You can provide such series of SQL statements, where output of one statement can be used as the input for the * next statement. You store intermediate results by creating in-application streams and pumps. *

*

* Note that the application code must create the streams with names specified in the Outputs. For * example, if your Outputs defines output streams named ExampleOutputStream1 and * ExampleOutputStream2, then your application code must create these streams. *

*/ private String applicationCode; /** *

* A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. *

*/ private java.util.List tags; /** *

* Name of your Amazon Kinesis Analytics application (for example, sample-app). *

* * @param applicationName * Name of your Amazon Kinesis Analytics application (for example, sample-app). */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* Name of your Amazon Kinesis Analytics application (for example, sample-app). *

* * @return Name of your Amazon Kinesis Analytics application (for example, sample-app). */ public String getApplicationName() { return this.applicationName; } /** *

* Name of your Amazon Kinesis Analytics application (for example, sample-app). *

* * @param applicationName * Name of your Amazon Kinesis Analytics application (for example, sample-app). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** *

* Summary description of the application. *

* * @param applicationDescription * Summary description of the application. */ public void setApplicationDescription(String applicationDescription) { this.applicationDescription = applicationDescription; } /** *

* Summary description of the application. *

* * @return Summary description of the application. */ public String getApplicationDescription() { return this.applicationDescription; } /** *

* Summary description of the application. *

* * @param applicationDescription * Summary description of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withApplicationDescription(String applicationDescription) { setApplicationDescription(applicationDescription); return this; } /** *

* Use this parameter to configure the application input. *

*

* You can configure your application to receive input from a single streaming source. In this configuration, you * map this streaming source to an in-application stream that is created. Your application code can then query the * in-application stream like a table (you can think of it as a constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for * example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to read * this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a schematized * version used in SQL. In the schema, you provide the necessary mapping of the data elements in the streaming * source to record columns in the in-app stream. *

* * @return Use this parameter to configure the application input.

*

* You can configure your application to receive input from a single streaming source. In this * configuration, you map this streaming source to an in-application stream that is created. Your * application code can then query the in-application stream like a table (you can think of it as a * constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream * (for example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can * assume to read this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a * schematized version used in SQL. In the schema, you provide the necessary mapping of the data elements in * the streaming source to record columns in the in-app stream. */ public java.util.List getInputs() { return inputs; } /** *

* Use this parameter to configure the application input. *

*

* You can configure your application to receive input from a single streaming source. In this configuration, you * map this streaming source to an in-application stream that is created. Your application code can then query the * in-application stream like a table (you can think of it as a constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for * example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to read * this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a schematized * version used in SQL. In the schema, you provide the necessary mapping of the data elements in the streaming * source to record columns in the in-app stream. *

* * @param inputs * Use this parameter to configure the application input.

*

* You can configure your application to receive input from a single streaming source. In this configuration, * you map this streaming source to an in-application stream that is created. Your application code can then * query the in-application stream like a table (you can think of it as a constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for * example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to * read this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a * schematized version used in SQL. In the schema, you provide the necessary mapping of the data elements in * the streaming source to record columns in the in-app stream. */ public void setInputs(java.util.Collection inputs) { if (inputs == null) { this.inputs = null; return; } this.inputs = new java.util.ArrayList(inputs); } /** *

* Use this parameter to configure the application input. *

*

* You can configure your application to receive input from a single streaming source. In this configuration, you * map this streaming source to an in-application stream that is created. Your application code can then query the * in-application stream like a table (you can think of it as a constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for * example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to read * this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a schematized * version used in SQL. In the schema, you provide the necessary mapping of the data elements in the streaming * source to record columns in the in-app stream. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setInputs(java.util.Collection)} or {@link #withInputs(java.util.Collection)} if you want to override the * existing values. *

* * @param inputs * Use this parameter to configure the application input.

*

* You can configure your application to receive input from a single streaming source. In this configuration, * you map this streaming source to an in-application stream that is created. Your application code can then * query the in-application stream like a table (you can think of it as a constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for * example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to * read this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a * schematized version used in SQL. In the schema, you provide the necessary mapping of the data elements in * the streaming source to record columns in the in-app stream. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withInputs(Input... inputs) { if (this.inputs == null) { setInputs(new java.util.ArrayList(inputs.length)); } for (Input ele : inputs) { this.inputs.add(ele); } return this; } /** *

* Use this parameter to configure the application input. *

*

* You can configure your application to receive input from a single streaming source. In this configuration, you * map this streaming source to an in-application stream that is created. Your application code can then query the * in-application stream like a table (you can think of it as a constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for * example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to read * this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a schematized * version used in SQL. In the schema, you provide the necessary mapping of the data elements in the streaming * source to record columns in the in-app stream. *

* * @param inputs * Use this parameter to configure the application input.

*

* You can configure your application to receive input from a single streaming source. In this configuration, * you map this streaming source to an in-application stream that is created. Your application code can then * query the in-application stream like a table (you can think of it as a constantly updating table). *

*

* For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for * example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to * read this stream on your behalf. *

*

* To create the in-application stream, you need to specify a schema to transform your data into a * schematized version used in SQL. In the schema, you provide the necessary mapping of the data elements in * the streaming source to record columns in the in-app stream. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withInputs(java.util.Collection inputs) { setInputs(inputs); return this; } /** *

* You can configure application output to write data from any of the in-application streams to up to three * destinations. *

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda function * Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that * Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, * you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that * Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf. *

* * @return You can configure application output to write data from any of the in-application streams to up to three * destinations.

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda * function Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an * IAM role that Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function * on your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream * destinations, you provide the format of data in the stream (for example, JSON, CSV). You also must * provide an IAM role that Amazon Kinesis Analytics can assume to write to the stream or Lambda function on * your behalf. */ public java.util.List getOutputs() { return outputs; } /** *

* You can configure application output to write data from any of the in-application streams to up to three * destinations. *

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda function * Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that * Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, * you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that * Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf. *

* * @param outputs * You can configure application output to write data from any of the in-application streams to up to three * destinations.

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda * function Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM * role that Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on * your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream * destinations, you provide the format of data in the stream (for example, JSON, CSV). You also must provide * an IAM role that Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your * behalf. */ public void setOutputs(java.util.Collection outputs) { if (outputs == null) { this.outputs = null; return; } this.outputs = new java.util.ArrayList(outputs); } /** *

* You can configure application output to write data from any of the in-application streams to up to three * destinations. *

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda function * Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that * Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, * you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that * Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOutputs(java.util.Collection)} or {@link #withOutputs(java.util.Collection)} if you want to override * the existing values. *

* * @param outputs * You can configure application output to write data from any of the in-application streams to up to three * destinations.

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda * function Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM * role that Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on * your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream * destinations, you provide the format of data in the stream (for example, JSON, CSV). You also must provide * an IAM role that Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your * behalf. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withOutputs(Output... outputs) { if (this.outputs == null) { setOutputs(new java.util.ArrayList(outputs.length)); } for (Output ele : outputs) { this.outputs.add(ele); } return this; } /** *

* You can configure application output to write data from any of the in-application streams to up to three * destinations. *

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda function * Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that * Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, * you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that * Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf. *

* * @param outputs * You can configure application output to write data from any of the in-application streams to up to three * destinations.

*

* These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda * destinations, or any combination of the three. *

*

* In the configuration, you specify the in-application stream name, the destination stream or Lambda * function Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM * role that Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on * your behalf. *

*

* In the output configuration, you also provide the output stream or Lambda function ARN. For stream * destinations, you provide the format of data in the stream (for example, JSON, CSV). You also must provide * an IAM role that Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your * behalf. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withOutputs(java.util.Collection outputs) { setOutputs(outputs); return this; } /** *

* Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For more * information, see Working * with Amazon CloudWatch Logs. *

* * @return Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For * more information, see Working with Amazon * CloudWatch Logs. */ public java.util.List getCloudWatchLoggingOptions() { return cloudWatchLoggingOptions; } /** *

* Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For more * information, see Working * with Amazon CloudWatch Logs. *

* * @param cloudWatchLoggingOptions * Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For * more information, see Working with Amazon * CloudWatch Logs. */ public void setCloudWatchLoggingOptions(java.util.Collection cloudWatchLoggingOptions) { if (cloudWatchLoggingOptions == null) { this.cloudWatchLoggingOptions = null; return; } this.cloudWatchLoggingOptions = new java.util.ArrayList(cloudWatchLoggingOptions); } /** *

* Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For more * information, see Working * with Amazon CloudWatch Logs. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCloudWatchLoggingOptions(java.util.Collection)} or * {@link #withCloudWatchLoggingOptions(java.util.Collection)} if you want to override the existing values. *

* * @param cloudWatchLoggingOptions * Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For * more information, see Working with Amazon * CloudWatch Logs. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withCloudWatchLoggingOptions(CloudWatchLoggingOption... cloudWatchLoggingOptions) { if (this.cloudWatchLoggingOptions == null) { setCloudWatchLoggingOptions(new java.util.ArrayList(cloudWatchLoggingOptions.length)); } for (CloudWatchLoggingOption ele : cloudWatchLoggingOptions) { this.cloudWatchLoggingOptions.add(ele); } return this; } /** *

* Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For more * information, see Working * with Amazon CloudWatch Logs. *

* * @param cloudWatchLoggingOptions * Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For * more information, see Working with Amazon * CloudWatch Logs. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withCloudWatchLoggingOptions(java.util.Collection cloudWatchLoggingOptions) { setCloudWatchLoggingOptions(cloudWatchLoggingOptions); return this; } /** *

* One or more SQL statements that read input data, transform it, and generate output. For example, you can write a * SQL statement that reads data from one in-application stream, generates a running average of the number of * advertisement clicks by vendor, and insert resulting rows in another in-application stream using pumps. For more * information about the typical pattern, see Application Code. *

*

* You can provide such series of SQL statements, where output of one statement can be used as the input for the * next statement. You store intermediate results by creating in-application streams and pumps. *

*

* Note that the application code must create the streams with names specified in the Outputs. For * example, if your Outputs defines output streams named ExampleOutputStream1 and * ExampleOutputStream2, then your application code must create these streams. *

* * @param applicationCode * One or more SQL statements that read input data, transform it, and generate output. For example, you can * write a SQL statement that reads data from one in-application stream, generates a running average of the * number of advertisement clicks by vendor, and insert resulting rows in another in-application stream using * pumps. For more information about the typical pattern, see Application * Code.

*

* You can provide such series of SQL statements, where output of one statement can be used as the input for * the next statement. You store intermediate results by creating in-application streams and pumps. *

*

* Note that the application code must create the streams with names specified in the Outputs. * For example, if your Outputs defines output streams named ExampleOutputStream1 * and ExampleOutputStream2, then your application code must create these streams. */ public void setApplicationCode(String applicationCode) { this.applicationCode = applicationCode; } /** *

* One or more SQL statements that read input data, transform it, and generate output. For example, you can write a * SQL statement that reads data from one in-application stream, generates a running average of the number of * advertisement clicks by vendor, and insert resulting rows in another in-application stream using pumps. For more * information about the typical pattern, see Application Code. *

*

* You can provide such series of SQL statements, where output of one statement can be used as the input for the * next statement. You store intermediate results by creating in-application streams and pumps. *

*

* Note that the application code must create the streams with names specified in the Outputs. For * example, if your Outputs defines output streams named ExampleOutputStream1 and * ExampleOutputStream2, then your application code must create these streams. *

* * @return One or more SQL statements that read input data, transform it, and generate output. For example, you can * write a SQL statement that reads data from one in-application stream, generates a running average of the * number of advertisement clicks by vendor, and insert resulting rows in another in-application stream * using pumps. For more information about the typical pattern, see Application * Code.

*

* You can provide such series of SQL statements, where output of one statement can be used as the input for * the next statement. You store intermediate results by creating in-application streams and pumps. *

*

* Note that the application code must create the streams with names specified in the Outputs. * For example, if your Outputs defines output streams named ExampleOutputStream1 * and ExampleOutputStream2, then your application code must create these streams. */ public String getApplicationCode() { return this.applicationCode; } /** *

* One or more SQL statements that read input data, transform it, and generate output. For example, you can write a * SQL statement that reads data from one in-application stream, generates a running average of the number of * advertisement clicks by vendor, and insert resulting rows in another in-application stream using pumps. For more * information about the typical pattern, see Application Code. *

*

* You can provide such series of SQL statements, where output of one statement can be used as the input for the * next statement. You store intermediate results by creating in-application streams and pumps. *

*

* Note that the application code must create the streams with names specified in the Outputs. For * example, if your Outputs defines output streams named ExampleOutputStream1 and * ExampleOutputStream2, then your application code must create these streams. *

* * @param applicationCode * One or more SQL statements that read input data, transform it, and generate output. For example, you can * write a SQL statement that reads data from one in-application stream, generates a running average of the * number of advertisement clicks by vendor, and insert resulting rows in another in-application stream using * pumps. For more information about the typical pattern, see Application * Code.

*

* You can provide such series of SQL statements, where output of one statement can be used as the input for * the next statement. You store intermediate results by creating in-application streams and pumps. *

*

* Note that the application code must create the streams with names specified in the Outputs. * For example, if your Outputs defines output streams named ExampleOutputStream1 * and ExampleOutputStream2, then your application code must create these streams. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withApplicationCode(String applicationCode) { setApplicationCode(applicationCode); return this; } /** *

* A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. *

* * @return A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. */ public java.util.List getTags() { return tags; } /** *

* A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. *

* * @param tags * A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. *

* * @param tags * A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an * application. Note that the maximum number of application tags includes system tags. The maximum number of * user-defined application tags is 50. For more information, see Using Tagging. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getApplicationName() != null) sb.append("ApplicationName: ").append(getApplicationName()).append(","); if (getApplicationDescription() != null) sb.append("ApplicationDescription: ").append(getApplicationDescription()).append(","); if (getInputs() != null) sb.append("Inputs: ").append(getInputs()).append(","); if (getOutputs() != null) sb.append("Outputs: ").append(getOutputs()).append(","); if (getCloudWatchLoggingOptions() != null) sb.append("CloudWatchLoggingOptions: ").append(getCloudWatchLoggingOptions()).append(","); if (getApplicationCode() != null) sb.append("ApplicationCode: ").append(getApplicationCode()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateApplicationRequest == false) return false; CreateApplicationRequest other = (CreateApplicationRequest) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getApplicationDescription() == null ^ this.getApplicationDescription() == null) return false; if (other.getApplicationDescription() != null && other.getApplicationDescription().equals(this.getApplicationDescription()) == false) return false; if (other.getInputs() == null ^ this.getInputs() == null) return false; if (other.getInputs() != null && other.getInputs().equals(this.getInputs()) == false) return false; if (other.getOutputs() == null ^ this.getOutputs() == null) return false; if (other.getOutputs() != null && other.getOutputs().equals(this.getOutputs()) == false) return false; if (other.getCloudWatchLoggingOptions() == null ^ this.getCloudWatchLoggingOptions() == null) return false; if (other.getCloudWatchLoggingOptions() != null && other.getCloudWatchLoggingOptions().equals(this.getCloudWatchLoggingOptions()) == false) return false; if (other.getApplicationCode() == null ^ this.getApplicationCode() == null) return false; if (other.getApplicationCode() != null && other.getApplicationCode().equals(this.getApplicationCode()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); hashCode = prime * hashCode + ((getApplicationDescription() == null) ? 0 : getApplicationDescription().hashCode()); hashCode = prime * hashCode + ((getInputs() == null) ? 0 : getInputs().hashCode()); hashCode = prime * hashCode + ((getOutputs() == null) ? 0 : getOutputs().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLoggingOptions() == null) ? 0 : getCloudWatchLoggingOptions().hashCode()); hashCode = prime * hashCode + ((getApplicationCode() == null) ? 0 : getApplicationCode().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateApplicationRequest clone() { return (CreateApplicationRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy