/* * 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.config.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 PutOrganizationConformancePackRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Name of the organization conformance pack you want to create. *
*/ private String organizationConformancePackName; /** ** Location of file containing the template body. The uri must point to the conformance pack template (max size: 300 * KB). *
** You must have access to read Amazon S3 bucket. *
** A string containing full conformance pack template body. Structure containing the template body with a minimum * length of 1 byte and a maximum length of 51,200 bytes. *
*/ private String templateBody; /** ** The name of the Amazon S3 bucket where Config stores conformance pack templates. *
*
* This field is optional. If used, it must be prefixed with awsconfigconforms
.
*
* The prefix for the Amazon S3 bucket. *
** This field is optional. *
*
* A list of ConformancePackInputParameter
objects.
*
* A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a * conformance pack. *
*/ private com.amazonaws.internal.SdkInternalList* Name of the organization conformance pack you want to create. *
* * @param organizationConformancePackName * Name of the organization conformance pack you want to create. */ public void setOrganizationConformancePackName(String organizationConformancePackName) { this.organizationConformancePackName = organizationConformancePackName; } /** ** Name of the organization conformance pack you want to create. *
* * @return Name of the organization conformance pack you want to create. */ public String getOrganizationConformancePackName() { return this.organizationConformancePackName; } /** ** Name of the organization conformance pack you want to create. *
* * @param organizationConformancePackName * Name of the organization conformance pack you want to create. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOrganizationConformancePackRequest withOrganizationConformancePackName(String organizationConformancePackName) { setOrganizationConformancePackName(organizationConformancePackName); return this; } /** ** Location of file containing the template body. The uri must point to the conformance pack template (max size: 300 * KB). *
** You must have access to read Amazon S3 bucket. *
** You must have access to read Amazon S3 bucket. *
*/ public void setTemplateS3Uri(String templateS3Uri) { this.templateS3Uri = templateS3Uri; } /** ** Location of file containing the template body. The uri must point to the conformance pack template (max size: 300 * KB). *
** You must have access to read Amazon S3 bucket. *
** You must have access to read Amazon S3 bucket. *
*/ public String getTemplateS3Uri() { return this.templateS3Uri; } /** ** Location of file containing the template body. The uri must point to the conformance pack template (max size: 300 * KB). *
** You must have access to read Amazon S3 bucket. *
** You must have access to read Amazon S3 bucket. *
* @return Returns a reference to this object so that method calls can be chained together. */ public PutOrganizationConformancePackRequest withTemplateS3Uri(String templateS3Uri) { setTemplateS3Uri(templateS3Uri); return this; } /** ** A string containing full conformance pack template body. Structure containing the template body with a minimum * length of 1 byte and a maximum length of 51,200 bytes. *
* * @param templateBody * A string containing full conformance pack template body. Structure containing the template body with a * minimum length of 1 byte and a maximum length of 51,200 bytes. */ public void setTemplateBody(String templateBody) { this.templateBody = templateBody; } /** ** A string containing full conformance pack template body. Structure containing the template body with a minimum * length of 1 byte and a maximum length of 51,200 bytes. *
* * @return A string containing full conformance pack template body. Structure containing the template body with a * minimum length of 1 byte and a maximum length of 51,200 bytes. */ public String getTemplateBody() { return this.templateBody; } /** ** A string containing full conformance pack template body. Structure containing the template body with a minimum * length of 1 byte and a maximum length of 51,200 bytes. *
* * @param templateBody * A string containing full conformance pack template body. Structure containing the template body with a * minimum length of 1 byte and a maximum length of 51,200 bytes. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOrganizationConformancePackRequest withTemplateBody(String templateBody) { setTemplateBody(templateBody); return this; } /** ** The name of the Amazon S3 bucket where Config stores conformance pack templates. *
*
* This field is optional. If used, it must be prefixed with awsconfigconforms
.
*
* This field is optional. If used, it must be prefixed with awsconfigconforms
.
*
* The name of the Amazon S3 bucket where Config stores conformance pack templates. *
*
* This field is optional. If used, it must be prefixed with awsconfigconforms
.
*
* This field is optional. If used, it must be prefixed with awsconfigconforms
.
*
* The name of the Amazon S3 bucket where Config stores conformance pack templates. *
*
* This field is optional. If used, it must be prefixed with awsconfigconforms
.
*
* This field is optional. If used, it must be prefixed with awsconfigconforms
.
*
* The prefix for the Amazon S3 bucket. *
** This field is optional. *
** This field is optional. *
*/ public void setDeliveryS3KeyPrefix(String deliveryS3KeyPrefix) { this.deliveryS3KeyPrefix = deliveryS3KeyPrefix; } /** ** The prefix for the Amazon S3 bucket. *
** This field is optional. *
** This field is optional. *
*/ public String getDeliveryS3KeyPrefix() { return this.deliveryS3KeyPrefix; } /** ** The prefix for the Amazon S3 bucket. *
** This field is optional. *
** This field is optional. *
* @return Returns a reference to this object so that method calls can be chained together. */ public PutOrganizationConformancePackRequest withDeliveryS3KeyPrefix(String deliveryS3KeyPrefix) { setDeliveryS3KeyPrefix(deliveryS3KeyPrefix); return this; } /** *
* A list of ConformancePackInputParameter
objects.
*
ConformancePackInputParameter
objects.
*/
public java.util.List
* A list of ConformancePackInputParameter
objects.
*
ConformancePackInputParameter
objects.
*/
public void setConformancePackInputParameters(java.util.Collection
* A list of ConformancePackInputParameter
objects.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setConformancePackInputParameters(java.util.Collection)} or * {@link #withConformancePackInputParameters(java.util.Collection)} if you want to override the existing values. *
* * @param conformancePackInputParameters * A list ofConformancePackInputParameter
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutOrganizationConformancePackRequest withConformancePackInputParameters(ConformancePackInputParameter... conformancePackInputParameters) {
if (this.conformancePackInputParameters == null) {
setConformancePackInputParameters(new com.amazonaws.internal.SdkInternalList
* A list of ConformancePackInputParameter
objects.
*
ConformancePackInputParameter
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutOrganizationConformancePackRequest withConformancePackInputParameters(
java.util.Collection* A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a * conformance pack. *
* * @return A list of Amazon Web Services accounts to be excluded from an organization conformance pack while * deploying a conformance pack. */ public java.util.List* A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a * conformance pack. *
* * @param excludedAccounts * A list of Amazon Web Services accounts to be excluded from an organization conformance pack while * deploying a conformance pack. */ public void setExcludedAccounts(java.util.Collection* A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a * conformance pack. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setExcludedAccounts(java.util.Collection)} or {@link #withExcludedAccounts(java.util.Collection)} if you * want to override the existing values. *
* * @param excludedAccounts * A list of Amazon Web Services accounts to be excluded from an organization conformance pack while * deploying a conformance pack. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOrganizationConformancePackRequest withExcludedAccounts(String... excludedAccounts) { if (this.excludedAccounts == null) { setExcludedAccounts(new com.amazonaws.internal.SdkInternalList* A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a * conformance pack. *
* * @param excludedAccounts * A list of Amazon Web Services accounts to be excluded from an organization conformance pack while * deploying a conformance pack. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOrganizationConformancePackRequest withExcludedAccounts(java.util.Collection