/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Summary information about a lifecycle policy.See Also:
AWS
* API Reference
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::MapThe tags.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags.
*/ inline void SetTags(const Aws::MapThe tags.
*/ inline void SetTags(Aws::MapThe tags.
*/ inline LifecyclePolicySummary& WithTags(const Aws::MapThe tags.
*/ inline LifecyclePolicySummary& WithTags(Aws::MapThe 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.
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.
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.
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.
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.
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.