/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include One or more policies assigned to a parameter.See Also:
AWS
* API Reference
The JSON text of the policy.
*/ inline const Aws::String& GetPolicyText() const{ return m_policyText; } /** *The JSON text of the policy.
*/ inline bool PolicyTextHasBeenSet() const { return m_policyTextHasBeenSet; } /** *The JSON text of the policy.
*/ inline void SetPolicyText(const Aws::String& value) { m_policyTextHasBeenSet = true; m_policyText = value; } /** *The JSON text of the policy.
*/ inline void SetPolicyText(Aws::String&& value) { m_policyTextHasBeenSet = true; m_policyText = std::move(value); } /** *The JSON text of the policy.
*/ inline void SetPolicyText(const char* value) { m_policyTextHasBeenSet = true; m_policyText.assign(value); } /** *The JSON text of the policy.
*/ inline ParameterInlinePolicy& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;} /** *The JSON text of the policy.
*/ inline ParameterInlinePolicy& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;} /** *The JSON text of the policy.
*/ inline ParameterInlinePolicy& WithPolicyText(const char* value) { SetPolicyText(value); return *this;} /** *The type of policy. Parameter Store, a capability of Amazon Web Services * Systems Manager, supports the following policy types: Expiration, * ExpirationNotification, and NoChangeNotification.
*/ inline const Aws::String& GetPolicyType() const{ return m_policyType; } /** *The type of policy. Parameter Store, a capability of Amazon Web Services * Systems Manager, supports the following policy types: Expiration, * ExpirationNotification, and NoChangeNotification.
*/ inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; } /** *The type of policy. Parameter Store, a capability of Amazon Web Services * Systems Manager, supports the following policy types: Expiration, * ExpirationNotification, and NoChangeNotification.
*/ inline void SetPolicyType(const Aws::String& value) { m_policyTypeHasBeenSet = true; m_policyType = value; } /** *The type of policy. Parameter Store, a capability of Amazon Web Services * Systems Manager, supports the following policy types: Expiration, * ExpirationNotification, and NoChangeNotification.
*/ inline void SetPolicyType(Aws::String&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); } /** *The type of policy. Parameter Store, a capability of Amazon Web Services * Systems Manager, supports the following policy types: Expiration, * ExpirationNotification, and NoChangeNotification.
*/ inline void SetPolicyType(const char* value) { m_policyTypeHasBeenSet = true; m_policyType.assign(value); } /** *The type of policy. Parameter Store, a capability of Amazon Web Services * Systems Manager, supports the following policy types: Expiration, * ExpirationNotification, and NoChangeNotification.
*/ inline ParameterInlinePolicy& WithPolicyType(const Aws::String& value) { SetPolicyType(value); return *this;} /** *The type of policy. Parameter Store, a capability of Amazon Web Services * Systems Manager, supports the following policy types: Expiration, * ExpirationNotification, and NoChangeNotification.
*/ inline ParameterInlinePolicy& WithPolicyType(Aws::String&& value) { SetPolicyType(std::move(value)); return *this;} /** *The type of policy. Parameter Store, a capability of Amazon Web Services * Systems Manager, supports the following policy types: Expiration, * ExpirationNotification, and NoChangeNotification.
*/ inline ParameterInlinePolicy& WithPolicyType(const char* value) { SetPolicyType(value); return *this;} /** *The status of the policy. Policies report the following statuses: Pending * (the policy hasn't been enforced or applied yet), Finished (the policy was * applied), Failed (the policy wasn't applied), or InProgress (the policy is being * applied now).
*/ inline const Aws::String& GetPolicyStatus() const{ return m_policyStatus; } /** *The status of the policy. Policies report the following statuses: Pending * (the policy hasn't been enforced or applied yet), Finished (the policy was * applied), Failed (the policy wasn't applied), or InProgress (the policy is being * applied now).
*/ inline bool PolicyStatusHasBeenSet() const { return m_policyStatusHasBeenSet; } /** *The status of the policy. Policies report the following statuses: Pending * (the policy hasn't been enforced or applied yet), Finished (the policy was * applied), Failed (the policy wasn't applied), or InProgress (the policy is being * applied now).
*/ inline void SetPolicyStatus(const Aws::String& value) { m_policyStatusHasBeenSet = true; m_policyStatus = value; } /** *The status of the policy. Policies report the following statuses: Pending * (the policy hasn't been enforced or applied yet), Finished (the policy was * applied), Failed (the policy wasn't applied), or InProgress (the policy is being * applied now).
*/ inline void SetPolicyStatus(Aws::String&& value) { m_policyStatusHasBeenSet = true; m_policyStatus = std::move(value); } /** *The status of the policy. Policies report the following statuses: Pending * (the policy hasn't been enforced or applied yet), Finished (the policy was * applied), Failed (the policy wasn't applied), or InProgress (the policy is being * applied now).
*/ inline void SetPolicyStatus(const char* value) { m_policyStatusHasBeenSet = true; m_policyStatus.assign(value); } /** *The status of the policy. Policies report the following statuses: Pending * (the policy hasn't been enforced or applied yet), Finished (the policy was * applied), Failed (the policy wasn't applied), or InProgress (the policy is being * applied now).
*/ inline ParameterInlinePolicy& WithPolicyStatus(const Aws::String& value) { SetPolicyStatus(value); return *this;} /** *The status of the policy. Policies report the following statuses: Pending * (the policy hasn't been enforced or applied yet), Finished (the policy was * applied), Failed (the policy wasn't applied), or InProgress (the policy is being * applied now).
*/ inline ParameterInlinePolicy& WithPolicyStatus(Aws::String&& value) { SetPolicyStatus(std::move(value)); return *this;} /** *The status of the policy. Policies report the following statuses: Pending * (the policy hasn't been enforced or applied yet), Finished (the policy was * applied), Failed (the policy wasn't applied), or InProgress (the policy is being * applied now).
*/ inline ParameterInlinePolicy& WithPolicyStatus(const char* value) { SetPolicyStatus(value); return *this;} private: Aws::String m_policyText; bool m_policyTextHasBeenSet = false; Aws::String m_policyType; bool m_policyTypeHasBeenSet = false; Aws::String m_policyStatus; bool m_policyStatusHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws