AWS SDK for C++  1.9.123
AWS SDK for C++
TargetGroup.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 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetArn() const{ return m_arn; }
46 
50  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 
55  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56 
60  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
61 
65  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 
70  inline TargetGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 
75  inline TargetGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
76 
80  inline TargetGroup& WithArn(const char* value) { SetArn(value); return *this;}
81 
82  private:
83 
84  Aws::String m_arn;
85  bool m_arnHasBeenSet;
86  };
87 
88 } // namespace Model
89 } // namespace EC2
90 } // namespace Aws
Aws::EC2::Model::TargetGroup::TargetGroup
TargetGroup()
Aws::EC2::Model::TargetGroup::SetArn
void SetArn(const char *value)
Definition: TargetGroup.h:65
Aws::EC2::Model::TargetGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TargetGroup::WithArn
TargetGroup & WithArn(Aws::String &&value)
Definition: TargetGroup.h:75
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TargetGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
Aws::EC2::Model::TargetGroup::GetArn
const Aws::String & GetArn() const
Definition: TargetGroup.h:45
Aws::EC2::Model::TargetGroup::operator=
TargetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TargetGroup::SetArn
void SetArn(Aws::String &&value)
Definition: TargetGroup.h:60
Aws::EC2::Model::TargetGroup::WithArn
TargetGroup & WithArn(const Aws::String &value)
Definition: TargetGroup.h:70
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TargetGroup
Definition: TargetGroup.h:32
Aws::EC2::Model::TargetGroup::TargetGroup
TargetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetGroup::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: TargetGroup.h:50
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TargetGroup::WithArn
TargetGroup & WithArn(const char *value)
Definition: TargetGroup.h:80
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
EC2_EXPORTS.h
Aws::EC2::Model::TargetGroup::SetArn
void SetArn(const Aws::String &value)
Definition: TargetGroup.h:55