AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
PolicyTargetSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/Organizations_EXPORTS.h>
9#include <aws/organizations/model/TargetType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Organizations {
21namespace Model {
22
30 public:
31 AWS_ORGANIZATIONS_API PolicyTargetSummary() = default;
32 AWS_ORGANIZATIONS_API PolicyTargetSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ORGANIZATIONS_API PolicyTargetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
48 inline const Aws::String& GetTargetId() const { return m_targetId; }
49 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
50 template <typename TargetIdT = Aws::String>
51 void SetTargetId(TargetIdT&& value) {
52 m_targetIdHasBeenSet = true;
53 m_targetId = std::forward<TargetIdT>(value);
54 }
55 template <typename TargetIdT = Aws::String>
56 PolicyTargetSummary& WithTargetId(TargetIdT&& value) {
57 SetTargetId(std::forward<TargetIdT>(value));
58 return *this;
59 }
61
63
70 inline const Aws::String& GetArn() const { return m_arn; }
71 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
72 template <typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) {
74 m_arnHasBeenSet = true;
75 m_arn = std::forward<ArnT>(value);
76 }
77 template <typename ArnT = Aws::String>
79 SetArn(std::forward<ArnT>(value));
80 return *this;
81 }
83
85
91 inline const Aws::String& GetName() const { return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 template <typename NameT = Aws::String>
94 void SetName(NameT&& value) {
95 m_nameHasBeenSet = true;
96 m_name = std::forward<NameT>(value);
97 }
98 template <typename NameT = Aws::String>
99 PolicyTargetSummary& WithName(NameT&& value) {
100 SetName(std::forward<NameT>(value));
101 return *this;
102 }
104
106
109 inline TargetType GetType() const { return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(TargetType value) {
112 m_typeHasBeenSet = true;
113 m_type = value;
114 }
116 SetType(value);
117 return *this;
118 }
120 private:
121 Aws::String m_targetId;
122
123 Aws::String m_arn;
124
125 Aws::String m_name;
126
128 bool m_targetIdHasBeenSet = false;
129 bool m_arnHasBeenSet = false;
130 bool m_nameHasBeenSet = false;
131 bool m_typeHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Organizations
136} // namespace Aws
AWS_ORGANIZATIONS_API PolicyTargetSummary()=default
PolicyTargetSummary & WithName(NameT &&value)
PolicyTargetSummary & WithType(TargetType value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyTargetSummary & WithArn(ArnT &&value)
AWS_ORGANIZATIONS_API PolicyTargetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API PolicyTargetSummary(Aws::Utils::Json::JsonView jsonValue)
PolicyTargetSummary & WithTargetId(TargetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue