/** * 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 VerifiedPermissions { namespace Model { /** */ class CreatePolicyStoreRequest : public VerifiedPermissionsRequest { public: AWS_VERIFIEDPERMISSIONS_API CreatePolicyStoreRequest(); // 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 "CreatePolicyStore"; } AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override; AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies a unique, case-sensitive ID that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Specifies a unique, case-sensitive ID that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Specifies a unique, case-sensitive ID that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Specifies a unique, case-sensitive ID that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Specifies a unique, case-sensitive ID that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Specifies a unique, case-sensitive ID that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline CreatePolicyStoreRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Specifies a unique, case-sensitive ID that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline CreatePolicyStoreRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Specifies a unique, case-sensitive ID that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline CreatePolicyStoreRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Specifies the validation setting for this policy store.

Currently, the * only valid and required value is Mode.

We * recommend that you turn on STRICT mode only after you define a * schema. If a schema doesn't exist, then STRICT mode causes any * policy to fail validation, and Verified Permissions rejects the policy. You can * turn off validation by using the UpdatePolicyStore. * Then, when you have a schema defined, use UpdatePolicyStore * again to turn validation back on.

*/ inline const ValidationSettings& GetValidationSettings() const{ return m_validationSettings; } /** *

Specifies the validation setting for this policy store.

Currently, the * only valid and required value is Mode.

We * recommend that you turn on STRICT mode only after you define a * schema. If a schema doesn't exist, then STRICT mode causes any * policy to fail validation, and Verified Permissions rejects the policy. You can * turn off validation by using the UpdatePolicyStore. * Then, when you have a schema defined, use UpdatePolicyStore * again to turn validation back on.

*/ inline bool ValidationSettingsHasBeenSet() const { return m_validationSettingsHasBeenSet; } /** *

Specifies the validation setting for this policy store.

Currently, the * only valid and required value is Mode.

We * recommend that you turn on STRICT mode only after you define a * schema. If a schema doesn't exist, then STRICT mode causes any * policy to fail validation, and Verified Permissions rejects the policy. You can * turn off validation by using the UpdatePolicyStore. * Then, when you have a schema defined, use UpdatePolicyStore * again to turn validation back on.

*/ inline void SetValidationSettings(const ValidationSettings& value) { m_validationSettingsHasBeenSet = true; m_validationSettings = value; } /** *

Specifies the validation setting for this policy store.

Currently, the * only valid and required value is Mode.

We * recommend that you turn on STRICT mode only after you define a * schema. If a schema doesn't exist, then STRICT mode causes any * policy to fail validation, and Verified Permissions rejects the policy. You can * turn off validation by using the UpdatePolicyStore. * Then, when you have a schema defined, use UpdatePolicyStore * again to turn validation back on.

*/ inline void SetValidationSettings(ValidationSettings&& value) { m_validationSettingsHasBeenSet = true; m_validationSettings = std::move(value); } /** *

Specifies the validation setting for this policy store.

Currently, the * only valid and required value is Mode.

We * recommend that you turn on STRICT mode only after you define a * schema. If a schema doesn't exist, then STRICT mode causes any * policy to fail validation, and Verified Permissions rejects the policy. You can * turn off validation by using the UpdatePolicyStore. * Then, when you have a schema defined, use UpdatePolicyStore * again to turn validation back on.

*/ inline CreatePolicyStoreRequest& WithValidationSettings(const ValidationSettings& value) { SetValidationSettings(value); return *this;} /** *

Specifies the validation setting for this policy store.

Currently, the * only valid and required value is Mode.

We * recommend that you turn on STRICT mode only after you define a * schema. If a schema doesn't exist, then STRICT mode causes any * policy to fail validation, and Verified Permissions rejects the policy. You can * turn off validation by using the UpdatePolicyStore. * Then, when you have a schema defined, use UpdatePolicyStore * again to turn validation back on.

*/ inline CreatePolicyStoreRequest& WithValidationSettings(ValidationSettings&& value) { SetValidationSettings(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; ValidationSettings m_validationSettings; bool m_validationSettingsHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws