AWS SDK for C++  1.9.104
AWS SDK for C++
PolicyDescriptorType.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sts/STS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace STS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
50  inline const Aws::String& GetArn() const{ return m_arn; }
51 
59  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 
68  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
69 
77  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
78 
86  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
87 
95  inline PolicyDescriptorType& WithArn(const Aws::String& value) { SetArn(value); return *this;}
96 
104  inline PolicyDescriptorType& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
105 
113  inline PolicyDescriptorType& WithArn(const char* value) { SetArn(value); return *this;}
114 
115  private:
116 
117  Aws::String m_arn;
118  bool m_arnHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace STS
123 } // namespace Aws
Aws::STS::Model::PolicyDescriptorType
Definition: PolicyDescriptorType.h:33
Aws::STS::Model::PolicyDescriptorType::WithArn
PolicyDescriptorType & WithArn(const char *value)
Definition: PolicyDescriptorType.h:113
Aws::STS::Model::PolicyDescriptorType::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::PolicyDescriptorType::operator=
PolicyDescriptorType & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::STS::Model::PolicyDescriptorType::PolicyDescriptorType
PolicyDescriptorType()
Aws::STS::Model::PolicyDescriptorType::SetArn
void SetArn(Aws::String &&value)
Definition: PolicyDescriptorType.h:77
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::STS::Model::PolicyDescriptorType::SetArn
void SetArn(const Aws::String &value)
Definition: PolicyDescriptorType.h:68
STS_EXPORTS.h
Aws::STS::Model::PolicyDescriptorType::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: PolicyDescriptorType.h:59
Aws::STS::Model::PolicyDescriptorType::PolicyDescriptorType
PolicyDescriptorType(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::STS::Model::PolicyDescriptorType::WithArn
PolicyDescriptorType & WithArn(Aws::String &&value)
Definition: PolicyDescriptorType.h:104
Aws::STS::Model::PolicyDescriptorType::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::STS::Model::PolicyDescriptorType::GetArn
const Aws::String & GetArn() const
Definition: PolicyDescriptorType.h:50
Aws::STS::Model::PolicyDescriptorType::WithArn
PolicyDescriptorType & WithArn(const Aws::String &value)
Definition: PolicyDescriptorType.h:95
Aws::STS::Model::PolicyDescriptorType::SetArn
void SetArn(const char *value)
Definition: PolicyDescriptorType.h:86