AWS SDK for C++  1.9.71
AWS SDK for C++
ScheduledInstancesIamInstanceProfile.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_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 EC2
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 
46  inline const Aws::String& GetArn() const{ return m_arn; }
47 
51  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 
56  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 
61  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
62 
66  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 
71  inline ScheduledInstancesIamInstanceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 
76  inline ScheduledInstancesIamInstanceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 
81  inline ScheduledInstancesIamInstanceProfile& WithArn(const char* value) { SetArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 
97  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
112  inline ScheduledInstancesIamInstanceProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline ScheduledInstancesIamInstanceProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline ScheduledInstancesIamInstanceProfile& WithName(const char* value) { SetName(value); return *this;}
123 
124  private:
125 
126  Aws::String m_arn;
127  bool m_arnHasBeenSet;
128 
129  Aws::String m_name;
130  bool m_nameHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace EC2
135 } // namespace Aws
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::ScheduledInstancesIamInstanceProfile
ScheduledInstancesIamInstanceProfile(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::WithArn
ScheduledInstancesIamInstanceProfile & WithArn(const char *value)
Definition: ScheduledInstancesIamInstanceProfile.h:81
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::WithName
ScheduledInstancesIamInstanceProfile & WithName(const Aws::String &value)
Definition: ScheduledInstancesIamInstanceProfile.h:112
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::WithName
ScheduledInstancesIamInstanceProfile & WithName(Aws::String &&value)
Definition: ScheduledInstancesIamInstanceProfile.h:117
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::SetArn
void SetArn(const Aws::String &value)
Definition: ScheduledInstancesIamInstanceProfile.h:56
AWSStreamFwd.h
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ScheduledInstancesIamInstanceProfile.h:92
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::GetName
const Aws::String & GetName() const
Definition: ScheduledInstancesIamInstanceProfile.h:87
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::operator=
ScheduledInstancesIamInstanceProfile & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::SetName
void SetName(const char *value)
Definition: ScheduledInstancesIamInstanceProfile.h:107
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::WithName
ScheduledInstancesIamInstanceProfile & WithName(const char *value)
Definition: ScheduledInstancesIamInstanceProfile.h:122
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::WithArn
ScheduledInstancesIamInstanceProfile & WithArn(const Aws::String &value)
Definition: ScheduledInstancesIamInstanceProfile.h:71
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::SetArn
void SetArn(Aws::String &&value)
Definition: ScheduledInstancesIamInstanceProfile.h:61
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::SetName
void SetName(const Aws::String &value)
Definition: ScheduledInstancesIamInstanceProfile.h:97
AWSString.h
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::GetArn
const Aws::String & GetArn() const
Definition: ScheduledInstancesIamInstanceProfile.h:46
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::WithArn
ScheduledInstancesIamInstanceProfile & WithArn(Aws::String &&value)
Definition: ScheduledInstancesIamInstanceProfile.h:76
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::SetArn
void SetArn(const char *value)
Definition: ScheduledInstancesIamInstanceProfile.h:66
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::ScheduledInstancesIamInstanceProfile
ScheduledInstancesIamInstanceProfile()
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ScheduledInstancesIamInstanceProfile.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile
Definition: ScheduledInstancesIamInstanceProfile.h:33
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::ScheduledInstancesIamInstanceProfile::SetName
void SetName(Aws::String &&value)
Definition: ScheduledInstancesIamInstanceProfile.h:102