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-ssm/include/aws/ssm/model/ParameterInlinePolicy.h

209 lines
7.8 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/ssm/SSM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>One or more policies assigned to a parameter.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ParameterInlinePolicy">AWS
* API Reference</a></p>
*/
class AWS_SSM_API ParameterInlinePolicy
{
public:
ParameterInlinePolicy();
ParameterInlinePolicy(Aws::Utils::Json::JsonView jsonValue);
ParameterInlinePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The JSON text of the policy.</p>
*/
inline const Aws::String& GetPolicyText() const{ return m_policyText; }
/**
* <p>The JSON text of the policy.</p>
*/
inline bool PolicyTextHasBeenSet() const { return m_policyTextHasBeenSet; }
/**
* <p>The JSON text of the policy.</p>
*/
inline void SetPolicyText(const Aws::String& value) { m_policyTextHasBeenSet = true; m_policyText = value; }
/**
* <p>The JSON text of the policy.</p>
*/
inline void SetPolicyText(Aws::String&& value) { m_policyTextHasBeenSet = true; m_policyText = std::move(value); }
/**
* <p>The JSON text of the policy.</p>
*/
inline void SetPolicyText(const char* value) { m_policyTextHasBeenSet = true; m_policyText.assign(value); }
/**
* <p>The JSON text of the policy.</p>
*/
inline ParameterInlinePolicy& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
/**
* <p>The JSON text of the policy.</p>
*/
inline ParameterInlinePolicy& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;}
/**
* <p>The JSON text of the policy.</p>
*/
inline ParameterInlinePolicy& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
/**
* <p>The type of policy. Parameter Store supports the following policy types:
* Expiration, ExpirationNotification, and NoChangeNotification. </p>
*/
inline const Aws::String& GetPolicyType() const{ return m_policyType; }
/**
* <p>The type of policy. Parameter Store supports the following policy types:
* Expiration, ExpirationNotification, and NoChangeNotification. </p>
*/
inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
/**
* <p>The type of policy. Parameter Store supports the following policy types:
* Expiration, ExpirationNotification, and NoChangeNotification. </p>
*/
inline void SetPolicyType(const Aws::String& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
/**
* <p>The type of policy. Parameter Store supports the following policy types:
* Expiration, ExpirationNotification, and NoChangeNotification. </p>
*/
inline void SetPolicyType(Aws::String&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
/**
* <p>The type of policy. Parameter Store supports the following policy types:
* Expiration, ExpirationNotification, and NoChangeNotification. </p>
*/
inline void SetPolicyType(const char* value) { m_policyTypeHasBeenSet = true; m_policyType.assign(value); }
/**
* <p>The type of policy. Parameter Store supports the following policy types:
* Expiration, ExpirationNotification, and NoChangeNotification. </p>
*/
inline ParameterInlinePolicy& WithPolicyType(const Aws::String& value) { SetPolicyType(value); return *this;}
/**
* <p>The type of policy. Parameter Store supports the following policy types:
* Expiration, ExpirationNotification, and NoChangeNotification. </p>
*/
inline ParameterInlinePolicy& WithPolicyType(Aws::String&& value) { SetPolicyType(std::move(value)); return *this;}
/**
* <p>The type of policy. Parameter Store supports the following policy types:
* Expiration, ExpirationNotification, and NoChangeNotification. </p>
*/
inline ParameterInlinePolicy& WithPolicyType(const char* value) { SetPolicyType(value); return *this;}
/**
* <p>The status of the policy. Policies report the following statuses: Pending
* (the policy has not been enforced or applied yet), Finished (the policy was
* applied), Failed (the policy was not applied), or InProgress (the policy is
* being applied now). </p>
*/
inline const Aws::String& GetPolicyStatus() const{ return m_policyStatus; }
/**
* <p>The status of the policy. Policies report the following statuses: Pending
* (the policy has not been enforced or applied yet), Finished (the policy was
* applied), Failed (the policy was not applied), or InProgress (the policy is
* being applied now). </p>
*/
inline bool PolicyStatusHasBeenSet() const { return m_policyStatusHasBeenSet; }
/**
* <p>The status of the policy. Policies report the following statuses: Pending
* (the policy has not been enforced or applied yet), Finished (the policy was
* applied), Failed (the policy was not applied), or InProgress (the policy is
* being applied now). </p>
*/
inline void SetPolicyStatus(const Aws::String& value) { m_policyStatusHasBeenSet = true; m_policyStatus = value; }
/**
* <p>The status of the policy. Policies report the following statuses: Pending
* (the policy has not been enforced or applied yet), Finished (the policy was
* applied), Failed (the policy was not applied), or InProgress (the policy is
* being applied now). </p>
*/
inline void SetPolicyStatus(Aws::String&& value) { m_policyStatusHasBeenSet = true; m_policyStatus = std::move(value); }
/**
* <p>The status of the policy. Policies report the following statuses: Pending
* (the policy has not been enforced or applied yet), Finished (the policy was
* applied), Failed (the policy was not applied), or InProgress (the policy is
* being applied now). </p>
*/
inline void SetPolicyStatus(const char* value) { m_policyStatusHasBeenSet = true; m_policyStatus.assign(value); }
/**
* <p>The status of the policy. Policies report the following statuses: Pending
* (the policy has not been enforced or applied yet), Finished (the policy was
* applied), Failed (the policy was not applied), or InProgress (the policy is
* being applied now). </p>
*/
inline ParameterInlinePolicy& WithPolicyStatus(const Aws::String& value) { SetPolicyStatus(value); return *this;}
/**
* <p>The status of the policy. Policies report the following statuses: Pending
* (the policy has not been enforced or applied yet), Finished (the policy was
* applied), Failed (the policy was not applied), or InProgress (the policy is
* being applied now). </p>
*/
inline ParameterInlinePolicy& WithPolicyStatus(Aws::String&& value) { SetPolicyStatus(std::move(value)); return *this;}
/**
* <p>The status of the policy. Policies report the following statuses: Pending
* (the policy has not been enforced or applied yet), Finished (the policy was
* applied), Failed (the policy was not applied), or InProgress (the policy is
* being applied now). </p>
*/
inline ParameterInlinePolicy& WithPolicyStatus(const char* value) { SetPolicyStatus(value); return *this;}
private:
Aws::String m_policyText;
bool m_policyTextHasBeenSet;
Aws::String m_policyType;
bool m_policyTypeHasBeenSet;
Aws::String m_policyStatus;
bool m_policyStatusHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws