AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetResourcePoliciesResponseEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SSM {
20namespace Model {
21
33 public:
34 AWS_SSM_API GetResourcePoliciesResponseEntry() = default;
38
40
43 inline const Aws::String& GetPolicyId() const { return m_policyId; }
44 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
45 template <typename PolicyIdT = Aws::String>
46 void SetPolicyId(PolicyIdT&& value) {
47 m_policyIdHasBeenSet = true;
48 m_policyId = std::forward<PolicyIdT>(value);
49 }
50 template <typename PolicyIdT = Aws::String>
52 SetPolicyId(std::forward<PolicyIdT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetPolicyHash() const { return m_policyHash; }
64 inline bool PolicyHashHasBeenSet() const { return m_policyHashHasBeenSet; }
65 template <typename PolicyHashT = Aws::String>
66 void SetPolicyHash(PolicyHashT&& value) {
67 m_policyHashHasBeenSet = true;
68 m_policyHash = std::forward<PolicyHashT>(value);
69 }
70 template <typename PolicyHashT = Aws::String>
72 SetPolicyHash(std::forward<PolicyHashT>(value));
73 return *this;
74 }
76
78
86 inline const Aws::String& GetPolicy() const { return m_policy; }
87 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
88 template <typename PolicyT = Aws::String>
89 void SetPolicy(PolicyT&& value) {
90 m_policyHasBeenSet = true;
91 m_policy = std::forward<PolicyT>(value);
92 }
93 template <typename PolicyT = Aws::String>
95 SetPolicy(std::forward<PolicyT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_policyId;
101
102 Aws::String m_policyHash;
103
104 Aws::String m_policy;
105 bool m_policyIdHasBeenSet = false;
106 bool m_policyHashHasBeenSet = false;
107 bool m_policyHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace SSM
112} // namespace Aws
const Aws::String & GetPolicy() const
void SetPolicyId(PolicyIdT &&value)
AWS_SSM_API GetResourcePoliciesResponseEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPolicy(PolicyT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
bool PolicyHasBeenSet() const
AWS_SSM_API GetResourcePoliciesResponseEntry()=default
GetResourcePoliciesResponseEntry & WithPolicyId(PolicyIdT &&value)
const Aws::String & GetPolicyHash() const
const Aws::String & GetPolicyId() const
GetResourcePoliciesResponseEntry & WithPolicyHash(PolicyHashT &&value)
void SetPolicyHash(PolicyHashT &&value)
AWS_SSM_API GetResourcePoliciesResponseEntry(Aws::Utils::Json::JsonView jsonValue)
bool PolicyIdHasBeenSet() const
GetResourcePoliciesResponseEntry & WithPolicy(PolicyT &&value)
bool PolicyHashHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue