AWS SDK for C++  1.9.103
AWS SDK for C++
VpcSecurityGroupMembership.h
Go to the documentation of this file.
1 
6 #pragma once
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 Redshift
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& GetVpcSecurityGroupId() const{ return m_vpcSecurityGroupId; }
46 
50  inline bool VpcSecurityGroupIdHasBeenSet() const { return m_vpcSecurityGroupIdHasBeenSet; }
51 
55  inline void SetVpcSecurityGroupId(const Aws::String& value) { m_vpcSecurityGroupIdHasBeenSet = true; m_vpcSecurityGroupId = value; }
56 
60  inline void SetVpcSecurityGroupId(Aws::String&& value) { m_vpcSecurityGroupIdHasBeenSet = true; m_vpcSecurityGroupId = std::move(value); }
61 
65  inline void SetVpcSecurityGroupId(const char* value) { m_vpcSecurityGroupIdHasBeenSet = true; m_vpcSecurityGroupId.assign(value); }
66 
70  inline VpcSecurityGroupMembership& WithVpcSecurityGroupId(const Aws::String& value) { SetVpcSecurityGroupId(value); return *this;}
71 
75  inline VpcSecurityGroupMembership& WithVpcSecurityGroupId(Aws::String&& value) { SetVpcSecurityGroupId(std::move(value)); return *this;}
76 
80  inline VpcSecurityGroupMembership& WithVpcSecurityGroupId(const char* value) { SetVpcSecurityGroupId(value); return *this;}
81 
82 
86  inline const Aws::String& GetStatus() const{ return m_status; }
87 
91  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 
96  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
97 
101  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
102 
106  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
107 
111  inline VpcSecurityGroupMembership& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
112 
116  inline VpcSecurityGroupMembership& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
117 
121  inline VpcSecurityGroupMembership& WithStatus(const char* value) { SetStatus(value); return *this;}
122 
123  private:
124 
125  Aws::String m_vpcSecurityGroupId;
126  bool m_vpcSecurityGroupIdHasBeenSet;
127 
128  Aws::String m_status;
129  bool m_statusHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace Redshift
134 } // namespace Aws
Aws::Redshift::Model::VpcSecurityGroupMembership::WithStatus
VpcSecurityGroupMembership & WithStatus(const Aws::String &value)
Definition: VpcSecurityGroupMembership.h:111
Aws::Redshift::Model::VpcSecurityGroupMembership::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::VpcSecurityGroupMembership::VpcSecurityGroupIdHasBeenSet
bool VpcSecurityGroupIdHasBeenSet() const
Definition: VpcSecurityGroupMembership.h:50
Aws::Redshift::Model::VpcSecurityGroupMembership::WithStatus
VpcSecurityGroupMembership & WithStatus(Aws::String &&value)
Definition: VpcSecurityGroupMembership.h:116
AWSStreamFwd.h
Aws::Redshift::Model::VpcSecurityGroupMembership::SetVpcSecurityGroupId
void SetVpcSecurityGroupId(const Aws::String &value)
Definition: VpcSecurityGroupMembership.h:55
Aws::Redshift::Model::VpcSecurityGroupMembership::VpcSecurityGroupMembership
VpcSecurityGroupMembership(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::VpcSecurityGroupMembership::WithStatus
VpcSecurityGroupMembership & WithStatus(const char *value)
Definition: VpcSecurityGroupMembership.h:121
Aws::Redshift::Model::VpcSecurityGroupMembership::WithVpcSecurityGroupId
VpcSecurityGroupMembership & WithVpcSecurityGroupId(Aws::String &&value)
Definition: VpcSecurityGroupMembership.h:75
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::VpcSecurityGroupMembership::SetStatus
void SetStatus(const Aws::String &value)
Definition: VpcSecurityGroupMembership.h:96
Aws::Redshift::Model::VpcSecurityGroupMembership::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSString.h
Aws::Redshift::Model::VpcSecurityGroupMembership::operator=
VpcSecurityGroupMembership & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::VpcSecurityGroupMembership::WithVpcSecurityGroupId
VpcSecurityGroupMembership & WithVpcSecurityGroupId(const char *value)
Definition: VpcSecurityGroupMembership.h:80
Aws::Redshift::Model::VpcSecurityGroupMembership::VpcSecurityGroupMembership
VpcSecurityGroupMembership()
Aws::Redshift::Model::VpcSecurityGroupMembership::SetStatus
void SetStatus(const char *value)
Definition: VpcSecurityGroupMembership.h:106
Aws::Redshift::Model::VpcSecurityGroupMembership::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: VpcSecurityGroupMembership.h:91
Aws::Redshift::Model::VpcSecurityGroupMembership::SetStatus
void SetStatus(Aws::String &&value)
Definition: VpcSecurityGroupMembership.h:101
Aws::Redshift::Model::VpcSecurityGroupMembership::GetStatus
const Aws::String & GetStatus() const
Definition: VpcSecurityGroupMembership.h:86
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::VpcSecurityGroupMembership::SetVpcSecurityGroupId
void SetVpcSecurityGroupId(Aws::String &&value)
Definition: VpcSecurityGroupMembership.h:60
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::Redshift::Model::VpcSecurityGroupMembership
Definition: VpcSecurityGroupMembership.h:32
Aws::Redshift::Model::VpcSecurityGroupMembership::SetVpcSecurityGroupId
void SetVpcSecurityGroupId(const char *value)
Definition: VpcSecurityGroupMembership.h:65
Aws::Redshift::Model::VpcSecurityGroupMembership::GetVpcSecurityGroupId
const Aws::String & GetVpcSecurityGroupId() const
Definition: VpcSecurityGroupMembership.h:45
Aws::Redshift::Model::VpcSecurityGroupMembership::WithVpcSecurityGroupId
VpcSecurityGroupMembership & WithVpcSecurityGroupId(const Aws::String &value)
Definition: VpcSecurityGroupMembership.h:70