/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ConfigService { namespace Model { /** */ class PutOrganizationConformancePackRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API PutOrganizationConformancePackRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutOrganizationConformancePack"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Name of the organization conformance pack you want to create.

*/ inline const Aws::String& GetOrganizationConformancePackName() const{ return m_organizationConformancePackName; } /** *

Name of the organization conformance pack you want to create.

*/ inline bool OrganizationConformancePackNameHasBeenSet() const { return m_organizationConformancePackNameHasBeenSet; } /** *

Name of the organization conformance pack you want to create.

*/ inline void SetOrganizationConformancePackName(const Aws::String& value) { m_organizationConformancePackNameHasBeenSet = true; m_organizationConformancePackName = value; } /** *

Name of the organization conformance pack you want to create.

*/ inline void SetOrganizationConformancePackName(Aws::String&& value) { m_organizationConformancePackNameHasBeenSet = true; m_organizationConformancePackName = std::move(value); } /** *

Name of the organization conformance pack you want to create.

*/ inline void SetOrganizationConformancePackName(const char* value) { m_organizationConformancePackNameHasBeenSet = true; m_organizationConformancePackName.assign(value); } /** *

Name of the organization conformance pack you want to create.

*/ inline PutOrganizationConformancePackRequest& WithOrganizationConformancePackName(const Aws::String& value) { SetOrganizationConformancePackName(value); return *this;} /** *

Name of the organization conformance pack you want to create.

*/ inline PutOrganizationConformancePackRequest& WithOrganizationConformancePackName(Aws::String&& value) { SetOrganizationConformancePackName(std::move(value)); return *this;} /** *

Name of the organization conformance pack you want to create.

*/ inline PutOrganizationConformancePackRequest& WithOrganizationConformancePackName(const char* value) { SetOrganizationConformancePackName(value); 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. In addition, in order to ensure a successful * deployment, the template object must not be in an archived * storage class if this parameter is passed.

*/ inline const Aws::String& GetTemplateS3Uri() const{ return m_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. In addition, in order to ensure a successful * deployment, the template object must not be in an archived * storage class if this parameter is passed.

*/ inline bool TemplateS3UriHasBeenSet() const { return m_templateS3UriHasBeenSet; } /** *

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. In addition, in order to ensure a successful * deployment, the template object must not be in an archived * storage class if this parameter is passed.

*/ inline void SetTemplateS3Uri(const Aws::String& value) { m_templateS3UriHasBeenSet = true; m_templateS3Uri = value; } /** *

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. In addition, in order to ensure a successful * deployment, the template object must not be in an archived * storage class if this parameter is passed.

*/ inline void SetTemplateS3Uri(Aws::String&& value) { m_templateS3UriHasBeenSet = true; m_templateS3Uri = std::move(value); } /** *

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. In addition, in order to ensure a successful * deployment, the template object must not be in an archived * storage class if this parameter is passed.

*/ inline void SetTemplateS3Uri(const char* value) { m_templateS3UriHasBeenSet = true; m_templateS3Uri.assign(value); } /** *

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. In addition, in order to ensure a successful * deployment, the template object must not be in an archived * storage class if this parameter is passed.

*/ inline PutOrganizationConformancePackRequest& WithTemplateS3Uri(const Aws::String& value) { SetTemplateS3Uri(value); 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. In addition, in order to ensure a successful * deployment, the template object must not be in an archived * storage class if this parameter is passed.

*/ inline PutOrganizationConformancePackRequest& WithTemplateS3Uri(Aws::String&& value) { SetTemplateS3Uri(std::move(value)); 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. In addition, in order to ensure a successful * deployment, the template object must not be in an archived * storage class if this parameter is passed.

*/ inline PutOrganizationConformancePackRequest& WithTemplateS3Uri(const char* value) { SetTemplateS3Uri(value); 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.

*/ inline const Aws::String& GetTemplateBody() const{ return m_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.

*/ inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; } /** *

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.

*/ inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; } /** *

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.

*/ inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); } /** *

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.

*/ inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); } /** *

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.

*/ inline PutOrganizationConformancePackRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); 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.

*/ inline PutOrganizationConformancePackRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); 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.

*/ inline PutOrganizationConformancePackRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); 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.

*/ inline const Aws::String& GetDeliveryS3Bucket() const{ return m_deliveryS3Bucket; } /** *

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.

*/ inline bool DeliveryS3BucketHasBeenSet() const { return m_deliveryS3BucketHasBeenSet; } /** *

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.

*/ inline void SetDeliveryS3Bucket(const Aws::String& value) { m_deliveryS3BucketHasBeenSet = true; m_deliveryS3Bucket = value; } /** *

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.

*/ inline void SetDeliveryS3Bucket(Aws::String&& value) { m_deliveryS3BucketHasBeenSet = true; m_deliveryS3Bucket = std::move(value); } /** *

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.

*/ inline void SetDeliveryS3Bucket(const char* value) { m_deliveryS3BucketHasBeenSet = true; m_deliveryS3Bucket.assign(value); } /** *

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.

*/ inline PutOrganizationConformancePackRequest& WithDeliveryS3Bucket(const Aws::String& value) { SetDeliveryS3Bucket(value); 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.

*/ inline PutOrganizationConformancePackRequest& WithDeliveryS3Bucket(Aws::String&& value) { SetDeliveryS3Bucket(std::move(value)); 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.

*/ inline PutOrganizationConformancePackRequest& WithDeliveryS3Bucket(const char* value) { SetDeliveryS3Bucket(value); return *this;} /** *

The prefix for the Amazon S3 bucket.

This field is * optional.

*/ inline const Aws::String& GetDeliveryS3KeyPrefix() const{ return m_deliveryS3KeyPrefix; } /** *

The prefix for the Amazon S3 bucket.

This field is * optional.

*/ inline bool DeliveryS3KeyPrefixHasBeenSet() const { return m_deliveryS3KeyPrefixHasBeenSet; } /** *

The prefix for the Amazon S3 bucket.

This field is * optional.

*/ inline void SetDeliveryS3KeyPrefix(const Aws::String& value) { m_deliveryS3KeyPrefixHasBeenSet = true; m_deliveryS3KeyPrefix = value; } /** *

The prefix for the Amazon S3 bucket.

This field is * optional.

*/ inline void SetDeliveryS3KeyPrefix(Aws::String&& value) { m_deliveryS3KeyPrefixHasBeenSet = true; m_deliveryS3KeyPrefix = std::move(value); } /** *

The prefix for the Amazon S3 bucket.

This field is * optional.

*/ inline void SetDeliveryS3KeyPrefix(const char* value) { m_deliveryS3KeyPrefixHasBeenSet = true; m_deliveryS3KeyPrefix.assign(value); } /** *

The prefix for the Amazon S3 bucket.

This field is * optional.

*/ inline PutOrganizationConformancePackRequest& WithDeliveryS3KeyPrefix(const Aws::String& value) { SetDeliveryS3KeyPrefix(value); return *this;} /** *

The prefix for the Amazon S3 bucket.

This field is * optional.

*/ inline PutOrganizationConformancePackRequest& WithDeliveryS3KeyPrefix(Aws::String&& value) { SetDeliveryS3KeyPrefix(std::move(value)); return *this;} /** *

The prefix for the Amazon S3 bucket.

This field is * optional.

*/ inline PutOrganizationConformancePackRequest& WithDeliveryS3KeyPrefix(const char* value) { SetDeliveryS3KeyPrefix(value); return *this;} /** *

A list of ConformancePackInputParameter objects.

*/ inline const Aws::Vector& GetConformancePackInputParameters() const{ return m_conformancePackInputParameters; } /** *

A list of ConformancePackInputParameter objects.

*/ inline bool ConformancePackInputParametersHasBeenSet() const { return m_conformancePackInputParametersHasBeenSet; } /** *

A list of ConformancePackInputParameter objects.

*/ inline void SetConformancePackInputParameters(const Aws::Vector& value) { m_conformancePackInputParametersHasBeenSet = true; m_conformancePackInputParameters = value; } /** *

A list of ConformancePackInputParameter objects.

*/ inline void SetConformancePackInputParameters(Aws::Vector&& value) { m_conformancePackInputParametersHasBeenSet = true; m_conformancePackInputParameters = std::move(value); } /** *

A list of ConformancePackInputParameter objects.

*/ inline PutOrganizationConformancePackRequest& WithConformancePackInputParameters(const Aws::Vector& value) { SetConformancePackInputParameters(value); return *this;} /** *

A list of ConformancePackInputParameter objects.

*/ inline PutOrganizationConformancePackRequest& WithConformancePackInputParameters(Aws::Vector&& value) { SetConformancePackInputParameters(std::move(value)); return *this;} /** *

A list of ConformancePackInputParameter objects.

*/ inline PutOrganizationConformancePackRequest& AddConformancePackInputParameters(const ConformancePackInputParameter& value) { m_conformancePackInputParametersHasBeenSet = true; m_conformancePackInputParameters.push_back(value); return *this; } /** *

A list of ConformancePackInputParameter objects.

*/ inline PutOrganizationConformancePackRequest& AddConformancePackInputParameters(ConformancePackInputParameter&& value) { m_conformancePackInputParametersHasBeenSet = true; m_conformancePackInputParameters.push_back(std::move(value)); return *this; } /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline const Aws::Vector& GetExcludedAccounts() const{ return m_excludedAccounts; } /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline bool ExcludedAccountsHasBeenSet() const { return m_excludedAccountsHasBeenSet; } /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline void SetExcludedAccounts(const Aws::Vector& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts = value; } /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline void SetExcludedAccounts(Aws::Vector&& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts = std::move(value); } /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline PutOrganizationConformancePackRequest& WithExcludedAccounts(const Aws::Vector& value) { SetExcludedAccounts(value); return *this;} /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline PutOrganizationConformancePackRequest& WithExcludedAccounts(Aws::Vector&& value) { SetExcludedAccounts(std::move(value)); return *this;} /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline PutOrganizationConformancePackRequest& AddExcludedAccounts(const Aws::String& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(value); return *this; } /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline PutOrganizationConformancePackRequest& AddExcludedAccounts(Aws::String&& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(std::move(value)); return *this; } /** *

A list of Amazon Web Services accounts to be excluded from an organization * conformance pack while deploying a conformance pack.

*/ inline PutOrganizationConformancePackRequest& AddExcludedAccounts(const char* value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(value); return *this; } private: Aws::String m_organizationConformancePackName; bool m_organizationConformancePackNameHasBeenSet = false; Aws::String m_templateS3Uri; bool m_templateS3UriHasBeenSet = false; Aws::String m_templateBody; bool m_templateBodyHasBeenSet = false; Aws::String m_deliveryS3Bucket; bool m_deliveryS3BucketHasBeenSet = false; Aws::String m_deliveryS3KeyPrefix; bool m_deliveryS3KeyPrefixHasBeenSet = false; Aws::Vector m_conformancePackInputParameters; bool m_conformancePackInputParametersHasBeenSet = false; Aws::Vector m_excludedAccounts; bool m_excludedAccountsHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws