AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
ServicePolicyDisassociatedMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9#include <aws/resiliencehubv2/model/PolicyDisassociationReason.h>
10#include <aws/resiliencehubv2/model/PolicyValueSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace resiliencehubv2 {
22namespace Model {
23
31 public:
32 AWS_RESILIENCEHUBV2_API ServicePolicyDisassociatedMetadata() = default;
35 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetPolicyName() const { return m_policyName; }
42 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
43 template <typename PolicyNameT = Aws::String>
44 void SetPolicyName(PolicyNameT&& value) {
45 m_policyNameHasBeenSet = true;
46 m_policyName = std::forward<PolicyNameT>(value);
47 }
48 template <typename PolicyNameT = Aws::String>
50 SetPolicyName(std::forward<PolicyNameT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
58 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
59 template <typename PolicyArnT = Aws::String>
60 void SetPolicyArn(PolicyArnT&& value) {
61 m_policyArnHasBeenSet = true;
62 m_policyArn = std::forward<PolicyArnT>(value);
63 }
64 template <typename PolicyArnT = Aws::String>
66 SetPolicyArn(std::forward<PolicyArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetPolicyOwnerAccountId() const { return m_policyOwnerAccountId; }
76 inline bool PolicyOwnerAccountIdHasBeenSet() const { return m_policyOwnerAccountIdHasBeenSet; }
77 template <typename PolicyOwnerAccountIdT = Aws::String>
78 void SetPolicyOwnerAccountId(PolicyOwnerAccountIdT&& value) {
79 m_policyOwnerAccountIdHasBeenSet = true;
80 m_policyOwnerAccountId = std::forward<PolicyOwnerAccountIdT>(value);
81 }
82 template <typename PolicyOwnerAccountIdT = Aws::String>
84 SetPolicyOwnerAccountId(std::forward<PolicyOwnerAccountIdT>(value));
85 return *this;
86 }
88
90
95 inline PolicyValueSource GetPolicySource() const { return m_policySource; }
96 inline bool PolicySourceHasBeenSet() const { return m_policySourceHasBeenSet; }
98 m_policySourceHasBeenSet = true;
99 m_policySource = value;
100 }
102 SetPolicySource(value);
103 return *this;
104 }
106
108
111 inline PolicyDisassociationReason GetReason() const { return m_reason; }
112 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
114 m_reasonHasBeenSet = true;
115 m_reason = value;
116 }
118 SetReason(value);
119 return *this;
120 }
122 private:
123 Aws::String m_policyName;
124
125 Aws::String m_policyArn;
126
127 Aws::String m_policyOwnerAccountId;
128
130
132 bool m_policyNameHasBeenSet = false;
133 bool m_policyArnHasBeenSet = false;
134 bool m_policyOwnerAccountIdHasBeenSet = false;
135 bool m_policySourceHasBeenSet = false;
136 bool m_reasonHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace resiliencehubv2
141} // namespace Aws
AWS_RESILIENCEHUBV2_API ServicePolicyDisassociatedMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ServicePolicyDisassociatedMetadata & WithPolicyOwnerAccountId(PolicyOwnerAccountIdT &&value)
AWS_RESILIENCEHUBV2_API ServicePolicyDisassociatedMetadata()=default
ServicePolicyDisassociatedMetadata & WithPolicyName(PolicyNameT &&value)
AWS_RESILIENCEHUBV2_API ServicePolicyDisassociatedMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
ServicePolicyDisassociatedMetadata & WithPolicySource(PolicyValueSource value)
ServicePolicyDisassociatedMetadata & WithPolicyArn(PolicyArnT &&value)
ServicePolicyDisassociatedMetadata & WithReason(PolicyDisassociationReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue