/* * 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 CreateConfigurationProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The application ID. *

*/ private String applicationId; /** *

* A name for the configuration profile. *

*/ private String name; /** *

* A description of the configuration profile. *

*/ private String description; /** *

* A URI to locate the configuration. You can specify the following: *

* */ private String locationUri; /** *

* The ARN of an IAM role with permission to access the configuration at the specified LocationUri. *

* *

* A retrieval role ARN is not required for configurations stored in the AppConfig hosted configuration store. It is * required for all other sources that store your configuration. *

*
*/ private String retrievalRoleArn; /** *

* A list of methods for validating the configuration. *

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

* Metadata to assign to the configuration profile. Tags help organize and categorize your AppConfig resources. Each * tag consists of a key and an optional value, both of which you define. *

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

* The type of configurations contained in the profile. AppConfig supports feature flags and * freeform configurations. We recommend you create feature flag configurations to enable or disable * new features and freeform configurations to distribute configurations to an application. When calling this API, * enter one of the following values for Type: *

*

* AWS.AppConfig.FeatureFlags *

*

* AWS.Freeform *

*/ private String type; /** *

* 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 CreateConfigurationProfileRequest withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* A name for the configuration profile. *

* * @param name * A name for the configuration profile. */ public void setName(String name) { this.name = name; } /** *

* A name for the configuration profile. *

* * @return A name for the configuration profile. */ public String getName() { return this.name; } /** *

* A name for the configuration profile. *

* * @param name * A name for the configuration profile. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationProfileRequest 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 CreateConfigurationProfileRequest withDescription(String description) { setDescription(description); return this; } /** *

* A URI to locate the configuration. You can specify the following: *

* * * @param locationUri * A URI to locate the configuration. You can specify the following:

*