/* * 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.appconfig.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 UpdateConfigurationProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The application ID. *
*/ private String applicationId; /** ** The ID of the configuration profile. *
*/ private String configurationProfileId; /** ** The name of the configuration profile. *
*/ private String name; /** ** A description of the configuration profile. *
*/ private String description; /** *
* The ARN of an IAM role with permission to access the configuration at the specified LocationUri
.
*
* A list of methods for validating the configuration. *
*/ private java.util.List* The application ID. *
* * @param applicationId * The application ID. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** ** The application ID. *
* * @return The application ID. */ public String getApplicationId() { return this.applicationId; } /** ** The application ID. *
* * @param applicationId * The application ID. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationProfileRequest withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** ** The ID of the configuration profile. *
* * @param configurationProfileId * The ID of the configuration profile. */ public void setConfigurationProfileId(String configurationProfileId) { this.configurationProfileId = configurationProfileId; } /** ** The ID of the configuration profile. *
* * @return The ID of the configuration profile. */ public String getConfigurationProfileId() { return this.configurationProfileId; } /** ** The ID of the configuration profile. *
* * @param configurationProfileId * The ID of the configuration profile. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationProfileRequest withConfigurationProfileId(String configurationProfileId) { setConfigurationProfileId(configurationProfileId); return this; } /** ** The name of the configuration profile. *
* * @param name * The name of the configuration profile. */ public void setName(String name) { this.name = name; } /** ** The name of the configuration profile. *
* * @return The name of the configuration profile. */ public String getName() { return this.name; } /** ** The name of the configuration profile. *
* * @param name * The name of the configuration profile. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationProfileRequest withName(String name) { setName(name); return this; } /** ** A description of the configuration profile. *
* * @param description * A description of the configuration profile. */ public void setDescription(String description) { this.description = description; } /** ** A description of the configuration profile. *
* * @return A description of the configuration profile. */ public String getDescription() { return this.description; } /** ** A description of the configuration profile. *
* * @param description * A description of the configuration profile. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationProfileRequest withDescription(String description) { setDescription(description); return this; } /** *
* The ARN of an IAM role with permission to access the configuration at the specified LocationUri
.
*
LocationUri
.
*/
public void setRetrievalRoleArn(String retrievalRoleArn) {
this.retrievalRoleArn = retrievalRoleArn;
}
/**
*
* The ARN of an IAM role with permission to access the configuration at the specified LocationUri
.
*
LocationUri
.
*/
public String getRetrievalRoleArn() {
return this.retrievalRoleArn;
}
/**
*
* The ARN of an IAM role with permission to access the configuration at the specified LocationUri
.
*
LocationUri
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateConfigurationProfileRequest withRetrievalRoleArn(String retrievalRoleArn) {
setRetrievalRoleArn(retrievalRoleArn);
return this;
}
/**
* * A list of methods for validating the configuration. *
* * @return A list of methods for validating the configuration. */ public java.util.List* A list of methods for validating the configuration. *
* * @param validators * A list of methods for validating the configuration. */ public void setValidators(java.util.Collection* A list of methods for validating the configuration. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setValidators(java.util.Collection)} or {@link #withValidators(java.util.Collection)} if you want to * override the existing values. *
* * @param validators * A list of methods for validating the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationProfileRequest withValidators(Validator... validators) { if (this.validators == null) { setValidators(new java.util.ArrayList* A list of methods for validating the configuration. *
* * @param validators * A list of methods for validating the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationProfileRequest withValidators(java.util.Collection