AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PrincipalIdFormat.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/IdFormat.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API PrincipalIdFormat();
37 AWS_EC2_API PrincipalIdFormat(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline PrincipalIdFormat& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline PrincipalIdFormat& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline PrincipalIdFormat& WithArn(const char* value) { SetArn(value); return *this;}
57
59
62 inline const Aws::Vector<IdFormat>& GetStatuses() const{ return m_statuses; }
63 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
64 inline void SetStatuses(const Aws::Vector<IdFormat>& value) { m_statusesHasBeenSet = true; m_statuses = value; }
65 inline void SetStatuses(Aws::Vector<IdFormat>&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); }
66 inline PrincipalIdFormat& WithStatuses(const Aws::Vector<IdFormat>& value) { SetStatuses(value); return *this;}
67 inline PrincipalIdFormat& WithStatuses(Aws::Vector<IdFormat>&& value) { SetStatuses(std::move(value)); return *this;}
68 inline PrincipalIdFormat& AddStatuses(const IdFormat& value) { m_statusesHasBeenSet = true; m_statuses.push_back(value); return *this; }
69 inline PrincipalIdFormat& AddStatuses(IdFormat&& value) { m_statusesHasBeenSet = true; m_statuses.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_arn;
74 bool m_arnHasBeenSet = false;
75
76 Aws::Vector<IdFormat> m_statuses;
77 bool m_statusesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
PrincipalIdFormat & WithArn(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PrincipalIdFormat & AddStatuses(const IdFormat &value)
const Aws::String & GetArn() const
void SetArn(Aws::String &&value)
AWS_EC2_API PrincipalIdFormat(const Aws::Utils::Xml::XmlNode &xmlNode)
PrincipalIdFormat & WithStatuses(const Aws::Vector< IdFormat > &value)
void SetStatuses(Aws::Vector< IdFormat > &&value)
void SetArn(const Aws::String &value)
PrincipalIdFormat & WithArn(const Aws::String &value)
PrincipalIdFormat & WithStatuses(Aws::Vector< IdFormat > &&value)
void SetStatuses(const Aws::Vector< IdFormat > &value)
AWS_EC2_API PrincipalIdFormat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PrincipalIdFormat & WithArn(const char *value)
PrincipalIdFormat & AddStatuses(IdFormat &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< IdFormat > & GetStatuses() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream