/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DLM { namespace Model { /** *

Summary information about a lifecycle policy.

See Also:

AWS * API Reference

*/ class LifecyclePolicySummary { public: AWS_DLM_API LifecyclePolicySummary(); AWS_DLM_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue); AWS_DLM_API LifecyclePolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 LifecyclePolicySummary& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;} /** *

The identifier of the lifecycle policy.

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

The identifier of the lifecycle policy.

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

The description of the lifecycle policy.

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

The description of the lifecycle policy.

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

The description of the lifecycle policy.

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

The description of the lifecycle policy.

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

The description of the lifecycle policy.

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

The description of the lifecycle policy.

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

The description of the lifecycle policy.

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

The description of the lifecycle policy.

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

The activation state of the lifecycle policy.

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

The activation state of the lifecycle policy.

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

The activation state of the lifecycle policy.

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

The activation state of the lifecycle policy.

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

The activation state of the lifecycle policy.

*/ inline LifecyclePolicySummary& WithState(const GettablePolicyStateValues& value) { SetState(value); return *this;} /** *

The activation state of the lifecycle policy.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

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

The tags.

*/ inline LifecyclePolicySummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the * policy manages the lifecycle of Amazon EBS snapshots. * IMAGE_MANAGEMENT indicates that the policy manages the lifecycle of * EBS-backed AMIs. EVENT_BASED_POLICY indicates that the policy * automates cross-account snapshot copies for snapshots that are shared with your * account.

*/ inline const PolicyTypeValues& GetPolicyType() const{ return m_policyType; } /** *

The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the * policy manages the lifecycle of Amazon EBS snapshots. * IMAGE_MANAGEMENT indicates that the policy manages the lifecycle of * EBS-backed AMIs. EVENT_BASED_POLICY indicates that the policy * automates cross-account snapshot copies for snapshots that are shared with your * account.

*/ inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; } /** *

The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the * policy manages the lifecycle of Amazon EBS snapshots. * IMAGE_MANAGEMENT indicates that the policy manages the lifecycle of * EBS-backed AMIs. EVENT_BASED_POLICY indicates that the policy * automates cross-account snapshot copies for snapshots that are shared with your * account.

*/ inline void SetPolicyType(const PolicyTypeValues& value) { m_policyTypeHasBeenSet = true; m_policyType = value; } /** *

The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the * policy manages the lifecycle of Amazon EBS snapshots. * IMAGE_MANAGEMENT indicates that the policy manages the lifecycle of * EBS-backed AMIs. EVENT_BASED_POLICY indicates that the policy * automates cross-account snapshot copies for snapshots that are shared with your * account.

*/ inline void SetPolicyType(PolicyTypeValues&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); } /** *

The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the * policy manages the lifecycle of Amazon EBS snapshots. * IMAGE_MANAGEMENT indicates that the policy manages the lifecycle of * EBS-backed AMIs. EVENT_BASED_POLICY indicates that the policy * automates cross-account snapshot copies for snapshots that are shared with your * account.

*/ inline LifecyclePolicySummary& WithPolicyType(const PolicyTypeValues& value) { SetPolicyType(value); return *this;} /** *

The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the * policy manages the lifecycle of Amazon EBS snapshots. * IMAGE_MANAGEMENT indicates that the policy manages the lifecycle of * EBS-backed AMIs. EVENT_BASED_POLICY indicates that the policy * automates cross-account snapshot copies for snapshots that are shared with your * account.

*/ inline LifecyclePolicySummary& WithPolicyType(PolicyTypeValues&& value) { SetPolicyType(std::move(value)); return *this;} private: Aws::String m_policyId; bool m_policyIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; GettablePolicyStateValues m_state; bool m_stateHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; PolicyTypeValues m_policyType; bool m_policyTypeHasBeenSet = false; }; } // namespace Model } // namespace DLM } // namespace Aws