AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EntityInfo.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iam/model/PolicyOwnerEntityType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace IAM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IAM_API EntityInfo();
37 AWS_IAM_API EntityInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_IAM_API EntityInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline EntityInfo& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline EntityInfo& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline EntityInfo& WithArn(const char* value) { SetArn(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline EntityInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline EntityInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline EntityInfo& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const PolicyOwnerEntityType& GetType() const{ return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(const PolicyOwnerEntityType& value) { m_typeHasBeenSet = true; m_type = value; }
77 inline void SetType(PolicyOwnerEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
78 inline EntityInfo& WithType(const PolicyOwnerEntityType& value) { SetType(value); return *this;}
79 inline EntityInfo& WithType(PolicyOwnerEntityType&& value) { SetType(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetId() const{ return m_id; }
87 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
89 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
90 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
91 inline EntityInfo& WithId(const Aws::String& value) { SetId(value); return *this;}
92 inline EntityInfo& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
93 inline EntityInfo& WithId(const char* value) { SetId(value); return *this;}
95
97
103 inline const Aws::String& GetPath() const{ return m_path; }
104 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
105 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
106 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
107 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
108 inline EntityInfo& WithPath(const Aws::String& value) { SetPath(value); return *this;}
109 inline EntityInfo& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
110 inline EntityInfo& WithPath(const char* value) { SetPath(value); return *this;}
112 private:
113
114 Aws::String m_arn;
115 bool m_arnHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
121 bool m_typeHasBeenSet = false;
122
123 Aws::String m_id;
124 bool m_idHasBeenSet = false;
125
126 Aws::String m_path;
127 bool m_pathHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace IAM
132} // namespace Aws
EntityInfo & WithId(const Aws::String &value)
Definition EntityInfo.h:91
void SetArn(const Aws::String &value)
Definition EntityInfo.h:48
const Aws::String & GetId() const
Definition EntityInfo.h:86
void SetPath(const char *value)
Definition EntityInfo.h:107
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EntityInfo & WithName(const char *value)
Definition EntityInfo.h:67
EntityInfo & WithPath(const Aws::String &value)
Definition EntityInfo.h:108
EntityInfo & WithName(const Aws::String &value)
Definition EntityInfo.h:65
void SetArn(Aws::String &&value)
Definition EntityInfo.h:49
EntityInfo & WithId(Aws::String &&value)
Definition EntityInfo.h:92
const Aws::String & GetName() const
Definition EntityInfo.h:60
void SetId(const char *value)
Definition EntityInfo.h:90
void SetName(Aws::String &&value)
Definition EntityInfo.h:63
void SetId(Aws::String &&value)
Definition EntityInfo.h:89
const Aws::String & GetPath() const
Definition EntityInfo.h:103
void SetPath(const Aws::String &value)
Definition EntityInfo.h:105
EntityInfo & WithArn(const Aws::String &value)
Definition EntityInfo.h:51
void SetId(const Aws::String &value)
Definition EntityInfo.h:88
EntityInfo & WithPath(Aws::String &&value)
Definition EntityInfo.h:109
void SetType(PolicyOwnerEntityType &&value)
Definition EntityInfo.h:77
EntityInfo & WithType(PolicyOwnerEntityType &&value)
Definition EntityInfo.h:79
const PolicyOwnerEntityType & GetType() const
Definition EntityInfo.h:74
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EntityInfo & WithPath(const char *value)
Definition EntityInfo.h:110
EntityInfo & WithArn(const char *value)
Definition EntityInfo.h:53
void SetName(const Aws::String &value)
Definition EntityInfo.h:62
EntityInfo & WithId(const char *value)
Definition EntityInfo.h:93
void SetType(const PolicyOwnerEntityType &value)
Definition EntityInfo.h:76
EntityInfo & WithArn(Aws::String &&value)
Definition EntityInfo.h:52
AWS_IAM_API EntityInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPath(Aws::String &&value)
Definition EntityInfo.h:106
void SetArn(const char *value)
Definition EntityInfo.h:50
const Aws::String & GetArn() const
Definition EntityInfo.h:46
void SetName(const char *value)
Definition EntityInfo.h:64
AWS_IAM_API EntityInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EntityInfo & WithType(const PolicyOwnerEntityType &value)
Definition EntityInfo.h:78
EntityInfo & WithName(Aws::String &&value)
Definition EntityInfo.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream