AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
57 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
58 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
59 inline PolicyTargetSummary& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
60 inline PolicyTargetSummary& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
61 inline PolicyTargetSummary& WithTargetId(const char* value) { SetTargetId(value); return *this;}
63
65
72 inline const Aws::String& GetArn() const{ return m_arn; }
73 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
74 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
75 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
76 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
77 inline PolicyTargetSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
78 inline PolicyTargetSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
79 inline PolicyTargetSummary& WithArn(const char* value) { SetArn(value); return *this;}
81
83
89 inline const Aws::String& GetName() const{ return m_name; }
90 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
93 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
94 inline PolicyTargetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
95 inline PolicyTargetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
96 inline PolicyTargetSummary& WithName(const char* value) { SetName(value); return *this;}
98
100
103 inline const TargetType& GetType() const{ return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(const TargetType& value) { m_typeHasBeenSet = true; m_type = value; }
106 inline void SetType(TargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
107 inline PolicyTargetSummary& WithType(const TargetType& value) { SetType(value); return *this;}
108 inline PolicyTargetSummary& WithType(TargetType&& value) { SetType(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_targetId;
113 bool m_targetIdHasBeenSet = false;
114
115 Aws::String m_arn;
116 bool m_arnHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 TargetType m_type;
122 bool m_typeHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Organizations
127} // namespace Aws
PolicyTargetSummary & WithType(const TargetType &value)
PolicyTargetSummary & WithName(const Aws::String &value)
PolicyTargetSummary & WithType(TargetType &&value)
PolicyTargetSummary & WithName(Aws::String &&value)
PolicyTargetSummary & WithTargetId(const char *value)
PolicyTargetSummary & WithArn(const Aws::String &value)
PolicyTargetSummary & WithName(const char *value)
PolicyTargetSummary & WithTargetId(const Aws::String &value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyTargetSummary & WithArn(const char *value)
PolicyTargetSummary & WithTargetId(Aws::String &&value)
PolicyTargetSummary & WithArn(Aws::String &&value)
AWS_ORGANIZATIONS_API PolicyTargetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API PolicyTargetSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue