AWS SDK for C++  1.9.71
AWS SDK for C++
AlternatePathHint.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& GetComponentId() const{ return m_componentId; }
47 
51  inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
52 
56  inline void SetComponentId(const Aws::String& value) { m_componentIdHasBeenSet = true; m_componentId = value; }
57 
61  inline void SetComponentId(Aws::String&& value) { m_componentIdHasBeenSet = true; m_componentId = std::move(value); }
62 
66  inline void SetComponentId(const char* value) { m_componentIdHasBeenSet = true; m_componentId.assign(value); }
67 
71  inline AlternatePathHint& WithComponentId(const Aws::String& value) { SetComponentId(value); return *this;}
72 
76  inline AlternatePathHint& WithComponentId(Aws::String&& value) { SetComponentId(std::move(value)); return *this;}
77 
81  inline AlternatePathHint& WithComponentId(const char* value) { SetComponentId(value); return *this;}
82 
83 
87  inline const Aws::String& GetComponentArn() const{ return m_componentArn; }
88 
92  inline bool ComponentArnHasBeenSet() const { return m_componentArnHasBeenSet; }
93 
97  inline void SetComponentArn(const Aws::String& value) { m_componentArnHasBeenSet = true; m_componentArn = value; }
98 
102  inline void SetComponentArn(Aws::String&& value) { m_componentArnHasBeenSet = true; m_componentArn = std::move(value); }
103 
107  inline void SetComponentArn(const char* value) { m_componentArnHasBeenSet = true; m_componentArn.assign(value); }
108 
112  inline AlternatePathHint& WithComponentArn(const Aws::String& value) { SetComponentArn(value); return *this;}
113 
117  inline AlternatePathHint& WithComponentArn(Aws::String&& value) { SetComponentArn(std::move(value)); return *this;}
118 
122  inline AlternatePathHint& WithComponentArn(const char* value) { SetComponentArn(value); return *this;}
123 
124  private:
125 
126  Aws::String m_componentId;
127  bool m_componentIdHasBeenSet;
128 
129  Aws::String m_componentArn;
130  bool m_componentArnHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace EC2
135 } // namespace Aws
Aws::EC2::Model::AlternatePathHint::operator=
AlternatePathHint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AlternatePathHint
Definition: AlternatePathHint.h:33
Aws::EC2::Model::AlternatePathHint::SetComponentId
void SetComponentId(const char *value)
Definition: AlternatePathHint.h:66
Aws::EC2::Model::AlternatePathHint::SetComponentArn
void SetComponentArn(const Aws::String &value)
Definition: AlternatePathHint.h:97
Aws::EC2::Model::AlternatePathHint::AlternatePathHint
AlternatePathHint()
Aws::EC2::Model::AlternatePathHint::ComponentIdHasBeenSet
bool ComponentIdHasBeenSet() const
Definition: AlternatePathHint.h:51
Aws::EC2::Model::AlternatePathHint::WithComponentId
AlternatePathHint & WithComponentId(Aws::String &&value)
Definition: AlternatePathHint.h:76
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::AlternatePathHint::SetComponentId
void SetComponentId(Aws::String &&value)
Definition: AlternatePathHint.h:61
Aws::EC2::Model::AlternatePathHint::SetComponentArn
void SetComponentArn(Aws::String &&value)
Definition: AlternatePathHint.h:102
Aws::EC2::Model::AlternatePathHint::SetComponentArn
void SetComponentArn(const char *value)
Definition: AlternatePathHint.h:107
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::AlternatePathHint::GetComponentId
const Aws::String & GetComponentId() const
Definition: AlternatePathHint.h:46
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::AlternatePathHint::WithComponentId
AlternatePathHint & WithComponentId(const Aws::String &value)
Definition: AlternatePathHint.h:71
Aws::EC2::Model::AlternatePathHint::WithComponentArn
AlternatePathHint & WithComponentArn(const char *value)
Definition: AlternatePathHint.h:122
Aws::EC2::Model::AlternatePathHint::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AlternatePathHint::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::AlternatePathHint::WithComponentArn
AlternatePathHint & WithComponentArn(const Aws::String &value)
Definition: AlternatePathHint.h:112
Aws::EC2::Model::AlternatePathHint::SetComponentId
void SetComponentId(const Aws::String &value)
Definition: AlternatePathHint.h:56
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::EC2::Model::AlternatePathHint::WithComponentArn
AlternatePathHint & WithComponentArn(Aws::String &&value)
Definition: AlternatePathHint.h:117
Aws::EC2::Model::AlternatePathHint::GetComponentArn
const Aws::String & GetComponentArn() const
Definition: AlternatePathHint.h:87
EC2_EXPORTS.h
Aws::EC2::Model::AlternatePathHint::AlternatePathHint
AlternatePathHint(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AlternatePathHint::WithComponentId
AlternatePathHint & WithComponentId(const char *value)
Definition: AlternatePathHint.h:81
Aws::EC2::Model::AlternatePathHint::ComponentArnHasBeenSet
bool ComponentArnHasBeenSet() const
Definition: AlternatePathHint.h:92