AWS SDK for C++  1.9.67
AWS SDK for C++
PrincipalIdFormat.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/IdFormat.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetArn() const{ return m_arn; }
48 
52  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 
57  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
58 
62  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
63 
67  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 
72  inline PrincipalIdFormat& WithArn(const Aws::String& value) { SetArn(value); return *this;}
73 
77  inline PrincipalIdFormat& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
78 
82  inline PrincipalIdFormat& WithArn(const char* value) { SetArn(value); return *this;}
83 
84 
88  inline const Aws::Vector<IdFormat>& GetStatuses() const{ return m_statuses; }
89 
93  inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
94 
98  inline void SetStatuses(const Aws::Vector<IdFormat>& value) { m_statusesHasBeenSet = true; m_statuses = value; }
99 
103  inline void SetStatuses(Aws::Vector<IdFormat>&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); }
104 
108  inline PrincipalIdFormat& WithStatuses(const Aws::Vector<IdFormat>& value) { SetStatuses(value); return *this;}
109 
113  inline PrincipalIdFormat& WithStatuses(Aws::Vector<IdFormat>&& value) { SetStatuses(std::move(value)); return *this;}
114 
118  inline PrincipalIdFormat& AddStatuses(const IdFormat& value) { m_statusesHasBeenSet = true; m_statuses.push_back(value); return *this; }
119 
123  inline PrincipalIdFormat& AddStatuses(IdFormat&& value) { m_statusesHasBeenSet = true; m_statuses.push_back(std::move(value)); return *this; }
124 
125  private:
126 
127  Aws::String m_arn;
128  bool m_arnHasBeenSet;
129 
130  Aws::Vector<IdFormat> m_statuses;
131  bool m_statusesHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace EC2
136 } // namespace Aws
Aws::EC2::Model::PrincipalIdFormat::AddStatuses
PrincipalIdFormat & AddStatuses(const IdFormat &value)
Definition: PrincipalIdFormat.h:118
Aws::EC2::Model::PrincipalIdFormat::WithStatuses
PrincipalIdFormat & WithStatuses(Aws::Vector< IdFormat > &&value)
Definition: PrincipalIdFormat.h:113
Aws::EC2::Model::IdFormat
Definition: IdFormat.h:33
Aws::EC2::Model::PrincipalIdFormat::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: PrincipalIdFormat.h:52
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::PrincipalIdFormat::WithArn
PrincipalIdFormat & WithArn(const char *value)
Definition: PrincipalIdFormat.h:82
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::PrincipalIdFormat::WithArn
PrincipalIdFormat & WithArn(Aws::String &&value)
Definition: PrincipalIdFormat.h:77
Aws::EC2::Model::PrincipalIdFormat::SetStatuses
void SetStatuses(Aws::Vector< IdFormat > &&value)
Definition: PrincipalIdFormat.h:103
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PrincipalIdFormat::WithArn
PrincipalIdFormat & WithArn(const Aws::String &value)
Definition: PrincipalIdFormat.h:72
Aws::EC2::Model::PrincipalIdFormat::PrincipalIdFormat
PrincipalIdFormat(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PrincipalIdFormat::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PrincipalIdFormat
Definition: PrincipalIdFormat.h:34
Aws::EC2::Model::PrincipalIdFormat::SetArn
void SetArn(const Aws::String &value)
Definition: PrincipalIdFormat.h:57
Aws::EC2::Model::PrincipalIdFormat::PrincipalIdFormat
PrincipalIdFormat()
AWSString.h
Aws::EC2::Model::PrincipalIdFormat::operator=
PrincipalIdFormat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PrincipalIdFormat::GetStatuses
const Aws::Vector< IdFormat > & GetStatuses() const
Definition: PrincipalIdFormat.h:88
Aws::EC2::Model::PrincipalIdFormat::GetArn
const Aws::String & GetArn() const
Definition: PrincipalIdFormat.h:47
Aws::EC2::Model::PrincipalIdFormat::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PrincipalIdFormat::SetArn
void SetArn(Aws::String &&value)
Definition: PrincipalIdFormat.h:62
Aws::EC2::Model::PrincipalIdFormat::SetArn
void SetArn(const char *value)
Definition: PrincipalIdFormat.h:67
Aws::EC2::Model::PrincipalIdFormat::AddStatuses
PrincipalIdFormat & AddStatuses(IdFormat &&value)
Definition: PrincipalIdFormat.h:123
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IdFormat.h
Aws::EC2::Model::PrincipalIdFormat::SetStatuses
void SetStatuses(const Aws::Vector< IdFormat > &value)
Definition: PrincipalIdFormat.h:98
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PrincipalIdFormat::WithStatuses
PrincipalIdFormat & WithStatuses(const Aws::Vector< IdFormat > &value)
Definition: PrincipalIdFormat.h:108
EC2_EXPORTS.h
Aws::EC2::Model::PrincipalIdFormat::StatusesHasBeenSet
bool StatusesHasBeenSet() const
Definition: PrincipalIdFormat.h:93