AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PolicyTargetSummary.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/TargetType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Organizations
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ORGANIZATIONS_API PolicyTargetSummary() = default;
37 AWS_ORGANIZATIONS_API PolicyTargetSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ORGANIZATIONS_API PolicyTargetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline const Aws::String& GetTargetId() const { return m_targetId; }
55 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
56 template<typename TargetIdT = Aws::String>
57 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
58 template<typename TargetIdT = Aws::String>
59 PolicyTargetSummary& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
74 template<typename ArnT = Aws::String>
75 PolicyTargetSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
77
79
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 PolicyTargetSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
97 inline TargetType GetType() const { return m_type; }
98 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 inline void SetType(TargetType value) { m_typeHasBeenSet = true; m_type = value; }
100 inline PolicyTargetSummary& WithType(TargetType value) { SetType(value); return *this;}
102 private:
103
104 Aws::String m_targetId;
105 bool m_targetIdHasBeenSet = false;
106
107 Aws::String m_arn;
108 bool m_arnHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
114 bool m_typeHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Organizations
119} // 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