/** * 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 DLM { namespace Model { /** */ class UpdateLifecyclePolicyRequest : public DLMRequest { public: AWS_DLM_API UpdateLifecyclePolicyRequest(); // 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 "UpdateLifecyclePolicy"; } AWS_DLM_API Aws::String SerializePayload() const override; /** *

The identifier of the lifecycle policy.

*/ inline const Aws::String& GetPolicyId() const{ return m_policyId; } /** *

The identifier of the lifecycle policy.

*/ inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; } /** *

The identifier of the lifecycle policy.

*/ inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; } /** *

The identifier of the lifecycle policy.

*/ inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); } /** *

The identifier of the lifecycle policy.

*/ inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); } /** *

The identifier of the lifecycle policy.

*/ inline UpdateLifecyclePolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;} /** *

The identifier of the lifecycle policy.

*/ inline UpdateLifecyclePolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;} /** *

The identifier of the lifecycle policy.

*/ inline UpdateLifecyclePolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;} /** *

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 UpdateLifecyclePolicyRequest& 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 UpdateLifecyclePolicyRequest& 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 UpdateLifecyclePolicyRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(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 UpdateLifecyclePolicyRequest& WithState(const SettablePolicyStateValues& value) { SetState(value); return *this;} /** *

The desired activation state of the lifecycle policy after creation.

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

A description of the lifecycle policy.

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

A description of the lifecycle policy.

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

A description of the lifecycle policy.

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

A description of the lifecycle policy.

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

A description of the lifecycle policy.

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

A description of the lifecycle policy.

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

A description of the lifecycle policy.

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

A description of the lifecycle policy.

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

The configuration of the lifecycle policy. You cannot update the policy type * or the resource type.

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

The configuration of the lifecycle policy. You cannot update the policy type * or the resource type.

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

The configuration of the lifecycle policy. You cannot update the policy type * or the resource type.

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

The configuration of the lifecycle policy. You cannot update the policy type * or the resource type.

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

The configuration of the lifecycle policy. You cannot update the policy type * or the resource type.

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

The configuration of the lifecycle policy. You cannot update the policy type * or the resource type.

*/ inline UpdateLifecyclePolicyRequest& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;} private: Aws::String m_policyId; bool m_policyIdHasBeenSet = false; Aws::String m_executionRoleArn; bool m_executionRoleArnHasBeenSet = false; SettablePolicyStateValues m_state; bool m_stateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; PolicyDetails m_policyDetails; bool m_policyDetailsHasBeenSet = false; }; } // namespace Model } // namespace DLM } // namespace Aws