AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
ServicePolicyAssociatedMetadata.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/PolicyValueSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
29 public:
30 AWS_RESILIENCEHUBV2_API ServicePolicyAssociatedMetadata() = default;
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetPolicyName() const { return m_policyName; }
40 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
41 template <typename PolicyNameT = Aws::String>
42 void SetPolicyName(PolicyNameT&& value) {
43 m_policyNameHasBeenSet = true;
44 m_policyName = std::forward<PolicyNameT>(value);
45 }
46 template <typename PolicyNameT = Aws::String>
48 SetPolicyName(std::forward<PolicyNameT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
56 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
57 template <typename PolicyArnT = Aws::String>
58 void SetPolicyArn(PolicyArnT&& value) {
59 m_policyArnHasBeenSet = true;
60 m_policyArn = std::forward<PolicyArnT>(value);
61 }
62 template <typename PolicyArnT = Aws::String>
64 SetPolicyArn(std::forward<PolicyArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetPolicyOwnerAccountId() const { return m_policyOwnerAccountId; }
74 inline bool PolicyOwnerAccountIdHasBeenSet() const { return m_policyOwnerAccountIdHasBeenSet; }
75 template <typename PolicyOwnerAccountIdT = Aws::String>
76 void SetPolicyOwnerAccountId(PolicyOwnerAccountIdT&& value) {
77 m_policyOwnerAccountIdHasBeenSet = true;
78 m_policyOwnerAccountId = std::forward<PolicyOwnerAccountIdT>(value);
79 }
80 template <typename PolicyOwnerAccountIdT = Aws::String>
82 SetPolicyOwnerAccountId(std::forward<PolicyOwnerAccountIdT>(value));
83 return *this;
84 }
86
88
93 inline PolicyValueSource GetPolicySource() const { return m_policySource; }
94 inline bool PolicySourceHasBeenSet() const { return m_policySourceHasBeenSet; }
96 m_policySourceHasBeenSet = true;
97 m_policySource = value;
98 }
100 SetPolicySource(value);
101 return *this;
102 }
104 private:
105 Aws::String m_policyName;
106
107 Aws::String m_policyArn;
108
109 Aws::String m_policyOwnerAccountId;
110
112 bool m_policyNameHasBeenSet = false;
113 bool m_policyArnHasBeenSet = false;
114 bool m_policyOwnerAccountIdHasBeenSet = false;
115 bool m_policySourceHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace resiliencehubv2
120} // namespace Aws
ServicePolicyAssociatedMetadata & WithPolicyArn(PolicyArnT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
ServicePolicyAssociatedMetadata & WithPolicyName(PolicyNameT &&value)
ServicePolicyAssociatedMetadata & WithPolicyOwnerAccountId(PolicyOwnerAccountIdT &&value)
AWS_RESILIENCEHUBV2_API ServicePolicyAssociatedMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API ServicePolicyAssociatedMetadata()=default
ServicePolicyAssociatedMetadata & WithPolicySource(PolicyValueSource value)
AWS_RESILIENCEHUBV2_API ServicePolicyAssociatedMetadata(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue