This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-dlm/include/aws/dlm/model/LifecyclePolicy.h

482 lines
16 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dlm/DLM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dlm/model/GettablePolicyStateValues.h>
#include <aws/core/utils/DateTime.h>
#include <aws/dlm/model/PolicyDetails.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DLM
{
namespace Model
{
/**
* <p>Detailed information about a lifecycle policy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/LifecyclePolicy">AWS
* API Reference</a></p>
*/
class AWS_DLM_API LifecyclePolicy
{
public:
LifecyclePolicy();
LifecyclePolicy(Aws::Utils::Json::JsonView jsonValue);
LifecyclePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier of the lifecycle policy.</p>
*/
inline const Aws::String& GetPolicyId() const{ return m_policyId; }
/**
* <p>The identifier of the lifecycle policy.</p>
*/
inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
/**
* <p>The identifier of the lifecycle policy.</p>
*/
inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
/**
* <p>The identifier of the lifecycle policy.</p>
*/
inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
/**
* <p>The identifier of the lifecycle policy.</p>
*/
inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
/**
* <p>The identifier of the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
/**
* <p>The identifier of the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
/**
* <p>The identifier of the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
/**
* <p>The description of the lifecycle policy.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the lifecycle policy.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the lifecycle policy.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the lifecycle policy.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the lifecycle policy.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The activation state of the lifecycle policy.</p>
*/
inline const GettablePolicyStateValues& GetState() const{ return m_state; }
/**
* <p>The activation state of the lifecycle policy.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The activation state of the lifecycle policy.</p>
*/
inline void SetState(const GettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The activation state of the lifecycle policy.</p>
*/
inline void SetState(GettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The activation state of the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithState(const GettablePolicyStateValues& value) { SetState(value); return *this;}
/**
* <p>The activation state of the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithState(GettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The description of the status.</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
/**
* <p>The description of the status.</p>
*/
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
/**
* <p>The description of the status.</p>
*/
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
/**
* <p>The description of the status.</p>
*/
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
/**
* <p>The description of the status.</p>
*/
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
/**
* <p>The description of the status.</p>
*/
inline LifecyclePolicy& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
/**
* <p>The description of the status.</p>
*/
inline LifecyclePolicy& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
/**
* <p>The description of the status.</p>
*/
inline LifecyclePolicy& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role used to run the operations
* specified by the lifecycle policy.</p>
*/
inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role used to run the operations
* specified by the lifecycle policy.</p>
*/
inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role used to run the operations
* specified by the lifecycle policy.</p>
*/
inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role used to run the operations
* specified by the lifecycle policy.</p>
*/
inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role used to run the operations
* specified by the lifecycle policy.</p>
*/
inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role used to run the operations
* specified by the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role used to run the operations
* specified by the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role used to run the operations
* specified by the lifecycle policy.</p>
*/
inline LifecyclePolicy& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
/**
* <p>The local date and time when the lifecycle policy was created.</p>
*/
inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
/**
* <p>The local date and time when the lifecycle policy was created.</p>
*/
inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
/**
* <p>The local date and time when the lifecycle policy was created.</p>
*/
inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
/**
* <p>The local date and time when the lifecycle policy was created.</p>
*/
inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
/**
* <p>The local date and time when the lifecycle policy was created.</p>
*/
inline LifecyclePolicy& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;}
/**
* <p>The local date and time when the lifecycle policy was created.</p>
*/
inline LifecyclePolicy& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;}
/**
* <p>The local date and time when the lifecycle policy was last modified.</p>
*/
inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; }
/**
* <p>The local date and time when the lifecycle policy was last modified.</p>
*/
inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
/**
* <p>The local date and time when the lifecycle policy was last modified.</p>
*/
inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModifiedHasBeenSet = true; m_dateModified = value; }
/**
* <p>The local date and time when the lifecycle policy was last modified.</p>
*/
inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::move(value); }
/**
* <p>The local date and time when the lifecycle policy was last modified.</p>
*/
inline LifecyclePolicy& WithDateModified(const Aws::Utils::DateTime& value) { SetDateModified(value); return *this;}
/**
* <p>The local date and time when the lifecycle policy was last modified.</p>
*/
inline LifecyclePolicy& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;}
/**
* <p>The configuration of the lifecycle policy</p>
*/
inline const PolicyDetails& GetPolicyDetails() const{ return m_policyDetails; }
/**
* <p>The configuration of the lifecycle policy</p>
*/
inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
/**
* <p>The configuration of the lifecycle policy</p>
*/
inline void SetPolicyDetails(const PolicyDetails& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
/**
* <p>The configuration of the lifecycle policy</p>
*/
inline void SetPolicyDetails(PolicyDetails&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
/**
* <p>The configuration of the lifecycle policy</p>
*/
inline LifecyclePolicy& WithPolicyDetails(const PolicyDetails& value) { SetPolicyDetails(value); return *this;}
/**
* <p>The configuration of the lifecycle policy</p>
*/
inline LifecyclePolicy& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;}
/**
* <p>The tags.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags.</p>
*/
inline LifecyclePolicy& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline LifecyclePolicy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline LifecyclePolicy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline LifecyclePolicy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
private:
Aws::String m_policyId;
bool m_policyIdHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
GettablePolicyStateValues m_state;
bool m_stateHasBeenSet;
Aws::String m_statusMessage;
bool m_statusMessageHasBeenSet;
Aws::String m_executionRoleArn;
bool m_executionRoleArnHasBeenSet;
Aws::Utils::DateTime m_dateCreated;
bool m_dateCreatedHasBeenSet;
Aws::Utils::DateTime m_dateModified;
bool m_dateModifiedHasBeenSet;
PolicyDetails m_policyDetails;
bool m_policyDetailsHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
Aws::String m_policyArn;
bool m_policyArnHasBeenSet;
};
} // namespace Model
} // namespace DLM
} // namespace Aws