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

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

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.kinesisanalyticsv2.model;

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

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The name of your application (for example, sample-app). *

*/ private String applicationName; /** *

* A summary description of the application. *

*/ private String applicationDescription; /** *

* The runtime environment for the application. *

*/ private String runtimeEnvironment; /** *

* The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, * Amazon S3 objects, and other external resources. *

*/ private String serviceExecutionRole; /** *

* Use this parameter to configure the application. *

*/ private ApplicationConfiguration applicationConfiguration; /** *

* Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors. *

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

* 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; /** *

* Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a Managed * Service for Apache Flink Studio notebook, use the INTERACTIVE mode. *

*/ private String applicationMode; /** *

* The name of your application (for example, sample-app). *

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

* The name of your application (for example, sample-app). *

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

* The name of your application (for example, sample-app). *

* * @param applicationName * The name of your 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; } /** *

* A summary description of the application. *

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

* A summary description of the application. *

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

* A summary description of the application. *

* * @param applicationDescription * A 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; } /** *

* The runtime environment for the application. *

* * @param runtimeEnvironment * The runtime environment for the application. * @see RuntimeEnvironment */ public void setRuntimeEnvironment(String runtimeEnvironment) { this.runtimeEnvironment = runtimeEnvironment; } /** *

* The runtime environment for the application. *

* * @return The runtime environment for the application. * @see RuntimeEnvironment */ public String getRuntimeEnvironment() { return this.runtimeEnvironment; } /** *

* The runtime environment for the application. *

* * @param runtimeEnvironment * The runtime environment for the application. * @return Returns a reference to this object so that method calls can be chained together. * @see RuntimeEnvironment */ public CreateApplicationRequest withRuntimeEnvironment(String runtimeEnvironment) { setRuntimeEnvironment(runtimeEnvironment); return this; } /** *

* The runtime environment for the application. *

* * @param runtimeEnvironment * The runtime environment for the application. * @return Returns a reference to this object so that method calls can be chained together. * @see RuntimeEnvironment */ public CreateApplicationRequest withRuntimeEnvironment(RuntimeEnvironment runtimeEnvironment) { this.runtimeEnvironment = runtimeEnvironment.toString(); return this; } /** *

* The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, * Amazon S3 objects, and other external resources. *

* * @param serviceExecutionRole * The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery * streams, Amazon S3 objects, and other external resources. */ public void setServiceExecutionRole(String serviceExecutionRole) { this.serviceExecutionRole = serviceExecutionRole; } /** *

* The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, * Amazon S3 objects, and other external resources. *

* * @return The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery * streams, Amazon S3 objects, and other external resources. */ public String getServiceExecutionRole() { return this.serviceExecutionRole; } /** *

* The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, * Amazon S3 objects, and other external resources. *

* * @param serviceExecutionRole * The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery * streams, Amazon S3 objects, and other external resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withServiceExecutionRole(String serviceExecutionRole) { setServiceExecutionRole(serviceExecutionRole); return this; } /** *

* Use this parameter to configure the application. *

* * @param applicationConfiguration * Use this parameter to configure the application. */ public void setApplicationConfiguration(ApplicationConfiguration applicationConfiguration) { this.applicationConfiguration = applicationConfiguration; } /** *

* Use this parameter to configure the application. *

* * @return Use this parameter to configure the application. */ public ApplicationConfiguration getApplicationConfiguration() { return this.applicationConfiguration; } /** *

* Use this parameter to configure the application. *

* * @param applicationConfiguration * Use this parameter to configure the application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withApplicationConfiguration(ApplicationConfiguration applicationConfiguration) { setApplicationConfiguration(applicationConfiguration); return this; } /** *

* Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors. *

* * @return Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration * errors. */ public java.util.List getCloudWatchLoggingOptions() { return cloudWatchLoggingOptions; } /** *

* Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors. *

* * @param cloudWatchLoggingOptions * Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration * errors. */ 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 an Amazon CloudWatch log stream to monitor application configuration errors. *

*

* 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 an Amazon CloudWatch log stream to monitor application configuration * errors. * @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 an Amazon CloudWatch log stream to monitor application configuration errors. *

* * @param cloudWatchLoggingOptions * Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration * errors. * @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; } /** *

* 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; } /** *

* Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a Managed * Service for Apache Flink Studio notebook, use the INTERACTIVE mode. *

* * @param applicationMode * Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a * Managed Service for Apache Flink Studio notebook, use the INTERACTIVE mode. * @see ApplicationMode */ public void setApplicationMode(String applicationMode) { this.applicationMode = applicationMode; } /** *

* Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a Managed * Service for Apache Flink Studio notebook, use the INTERACTIVE mode. *

* * @return Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a * Managed Service for Apache Flink Studio notebook, use the INTERACTIVE mode. * @see ApplicationMode */ public String getApplicationMode() { return this.applicationMode; } /** *

* Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a Managed * Service for Apache Flink Studio notebook, use the INTERACTIVE mode. *

* * @param applicationMode * Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a * Managed Service for Apache Flink Studio notebook, use the INTERACTIVE mode. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationMode */ public CreateApplicationRequest withApplicationMode(String applicationMode) { setApplicationMode(applicationMode); return this; } /** *

* Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a Managed * Service for Apache Flink Studio notebook, use the INTERACTIVE mode. *

* * @param applicationMode * Use the STREAMING mode to create a Managed Service for Apache Flink application. To create a * Managed Service for Apache Flink Studio notebook, use the INTERACTIVE mode. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationMode */ public CreateApplicationRequest withApplicationMode(ApplicationMode applicationMode) { this.applicationMode = applicationMode.toString(); 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 (getRuntimeEnvironment() != null) sb.append("RuntimeEnvironment: ").append(getRuntimeEnvironment()).append(","); if (getServiceExecutionRole() != null) sb.append("ServiceExecutionRole: ").append(getServiceExecutionRole()).append(","); if (getApplicationConfiguration() != null) sb.append("ApplicationConfiguration: ").append(getApplicationConfiguration()).append(","); if (getCloudWatchLoggingOptions() != null) sb.append("CloudWatchLoggingOptions: ").append(getCloudWatchLoggingOptions()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getApplicationMode() != null) sb.append("ApplicationMode: ").append(getApplicationMode()); 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.getRuntimeEnvironment() == null ^ this.getRuntimeEnvironment() == null) return false; if (other.getRuntimeEnvironment() != null && other.getRuntimeEnvironment().equals(this.getRuntimeEnvironment()) == false) return false; if (other.getServiceExecutionRole() == null ^ this.getServiceExecutionRole() == null) return false; if (other.getServiceExecutionRole() != null && other.getServiceExecutionRole().equals(this.getServiceExecutionRole()) == false) return false; if (other.getApplicationConfiguration() == null ^ this.getApplicationConfiguration() == null) return false; if (other.getApplicationConfiguration() != null && other.getApplicationConfiguration().equals(this.getApplicationConfiguration()) == 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.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getApplicationMode() == null ^ this.getApplicationMode() == null) return false; if (other.getApplicationMode() != null && other.getApplicationMode().equals(this.getApplicationMode()) == 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 + ((getRuntimeEnvironment() == null) ? 0 : getRuntimeEnvironment().hashCode()); hashCode = prime * hashCode + ((getServiceExecutionRole() == null) ? 0 : getServiceExecutionRole().hashCode()); hashCode = prime * hashCode + ((getApplicationConfiguration() == null) ? 0 : getApplicationConfiguration().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLoggingOptions() == null) ? 0 : getCloudWatchLoggingOptions().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getApplicationMode() == null) ? 0 : getApplicationMode().hashCode()); return hashCode; } @Override public CreateApplicationRequest clone() { return (CreateApplicationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy