/* * 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.ssmsap.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 RegisterApplicationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the application. *
*/ private String applicationId; /** ** The type of the application. *
*/ private String applicationType; /** ** The Amazon EC2 instances on which your SAP application is running. *
*/ private java.util.List* The SAP instance number of the application. *
*/ private String sapInstanceNumber; /** ** The System ID of the application. *
*/ private String sid; /** ** The tags to be attached to the SAP application. *
*/ private java.util.Map* The credentials of the SAP application. *
*/ private java.util.List* The ID of the application. *
* * @param applicationId * The ID of the application. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** ** The ID of the application. *
* * @return The ID of the application. */ public String getApplicationId() { return this.applicationId; } /** ** The ID of the application. *
* * @param applicationId * The ID of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterApplicationRequest withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** ** The type of the application. *
* * @param applicationType * The type of the application. * @see ApplicationType */ public void setApplicationType(String applicationType) { this.applicationType = applicationType; } /** ** The type of the application. *
* * @return The type of the application. * @see ApplicationType */ public String getApplicationType() { return this.applicationType; } /** ** The type of the application. *
* * @param applicationType * The type of the application. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationType */ public RegisterApplicationRequest withApplicationType(String applicationType) { setApplicationType(applicationType); return this; } /** ** The type of the application. *
* * @param applicationType * The type of the application. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationType */ public RegisterApplicationRequest withApplicationType(ApplicationType applicationType) { this.applicationType = applicationType.toString(); return this; } /** ** The Amazon EC2 instances on which your SAP application is running. *
* * @return The Amazon EC2 instances on which your SAP application is running. */ public java.util.List* The Amazon EC2 instances on which your SAP application is running. *
* * @param instances * The Amazon EC2 instances on which your SAP application is running. */ public void setInstances(java.util.Collection* The Amazon EC2 instances on which your SAP application is running. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstances(java.util.Collection)} or {@link #withInstances(java.util.Collection)} if you want to * override the existing values. *
* * @param instances * The Amazon EC2 instances on which your SAP application is running. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterApplicationRequest withInstances(String... instances) { if (this.instances == null) { setInstances(new java.util.ArrayList* The Amazon EC2 instances on which your SAP application is running. *
* * @param instances * The Amazon EC2 instances on which your SAP application is running. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterApplicationRequest withInstances(java.util.Collection* The SAP instance number of the application. *
* * @param sapInstanceNumber * The SAP instance number of the application. */ public void setSapInstanceNumber(String sapInstanceNumber) { this.sapInstanceNumber = sapInstanceNumber; } /** ** The SAP instance number of the application. *
* * @return The SAP instance number of the application. */ public String getSapInstanceNumber() { return this.sapInstanceNumber; } /** ** The SAP instance number of the application. *
* * @param sapInstanceNumber * The SAP instance number of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterApplicationRequest withSapInstanceNumber(String sapInstanceNumber) { setSapInstanceNumber(sapInstanceNumber); return this; } /** ** The System ID of the application. *
* * @param sid * The System ID of the application. */ public void setSid(String sid) { this.sid = sid; } /** ** The System ID of the application. *
* * @return The System ID of the application. */ public String getSid() { return this.sid; } /** ** The System ID of the application. *
* * @param sid * The System ID of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterApplicationRequest withSid(String sid) { setSid(sid); return this; } /** ** The tags to be attached to the SAP application. *
* * @return The tags to be attached to the SAP application. */ public java.util.Map* The tags to be attached to the SAP application. *
* * @param tags * The tags to be attached to the SAP application. */ public void setTags(java.util.Map* The tags to be attached to the SAP application. *
* * @param tags * The tags to be attached to the SAP application. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterApplicationRequest withTags(java.util.Map* The credentials of the SAP application. *
* * @return The credentials of the SAP application. */ public java.util.List* The credentials of the SAP application. *
* * @param credentials * The credentials of the SAP application. */ public void setCredentials(java.util.Collection* The credentials of the SAP application. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCredentials(java.util.Collection)} or {@link #withCredentials(java.util.Collection)} if you want to * override the existing values. *
* * @param credentials * The credentials of the SAP application. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterApplicationRequest withCredentials(ApplicationCredential... credentials) { if (this.credentials == null) { setCredentials(new java.util.ArrayList* The credentials of the SAP application. *
* * @param credentials * The credentials of the SAP application. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterApplicationRequest withCredentials(java.util.Collection