/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace DLM { namespace Model { /** */ class CreateLifecyclePolicyRequest : public DLMRequest { public: AWS_DLM_API CreateLifecyclePolicyRequest(); // 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 "CreateLifecyclePolicy"; } AWS_DLM_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the IAM role used to run the operations * specified by the lifecycle policy.

*/ inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role used to run the operations * specified by the lifecycle policy.

*/ inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role used to run the operations * specified by the lifecycle policy.

*/ inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role used to run the operations * specified by the lifecycle policy.

*/ inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role used to run the operations * specified by the lifecycle policy.

*/ inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role used to run the operations * specified by the lifecycle policy.

*/ inline CreateLifecyclePolicyRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role used to run the operations * specified by the lifecycle policy.

*/ inline CreateLifecyclePolicyRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role used to run the operations * specified by the lifecycle policy.

*/ inline CreateLifecyclePolicyRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;} /** *

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are * supported.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are * supported.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are * supported.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are * supported.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are * supported.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are * supported.

*/ inline CreateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are * supported.

*/ inline CreateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are * supported.

*/ inline CreateLifecyclePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The desired activation state of the lifecycle policy after creation.

*/ inline const SettablePolicyStateValues& GetState() const{ return m_state; } /** *

The desired activation state of the lifecycle policy after creation.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The desired activation state of the lifecycle policy after creation.

*/ inline void SetState(const SettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The desired activation state of the lifecycle policy after creation.

*/ inline void SetState(SettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The desired activation state of the lifecycle policy after creation.

*/ inline CreateLifecyclePolicyRequest& WithState(const SettablePolicyStateValues& value) { SetState(value); return *this;} /** *

The desired activation state of the lifecycle policy after creation.

*/ inline CreateLifecyclePolicyRequest& WithState(SettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;} /** *

The configuration details of the lifecycle policy.

*/ inline const PolicyDetails& GetPolicyDetails() const{ return m_policyDetails; } /** *

The configuration details of the lifecycle policy.

*/ inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; } /** *

The configuration details of the lifecycle policy.

*/ inline void SetPolicyDetails(const PolicyDetails& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; } /** *

The configuration details of the lifecycle policy.

*/ inline void SetPolicyDetails(PolicyDetails&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); } /** *

The configuration details of the lifecycle policy.

*/ inline CreateLifecyclePolicyRequest& WithPolicyDetails(const PolicyDetails& value) { SetPolicyDetails(value); return *this;} /** *

The configuration details of the lifecycle policy.

*/ inline CreateLifecyclePolicyRequest& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;} /** *

The tags to apply to the lifecycle policy during creation.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to apply to the lifecycle policy during creation.

*/ inline CreateLifecyclePolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_executionRoleArn; bool m_executionRoleArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; SettablePolicyStateValues m_state; bool m_stateHasBeenSet = false; PolicyDetails m_policyDetails; bool m_policyDetailsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DLM } // namespace Aws