AWS SDK for C++  1.9.110
AWS SDK for C++
ModifyEndpointAccessRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ModifyEndpointAccess"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
44 
48  inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
49 
53  inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
54 
58  inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
59 
63  inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
64 
68  inline ModifyEndpointAccessRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
69 
73  inline ModifyEndpointAccessRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
74 
78  inline ModifyEndpointAccessRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
79 
80 
85  inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
86 
91  inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
92 
97  inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
98 
103  inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
104 
109  inline ModifyEndpointAccessRequest& WithVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetVpcSecurityGroupIds(value); return *this;}
110 
115  inline ModifyEndpointAccessRequest& WithVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;}
116 
121  inline ModifyEndpointAccessRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
122 
127  inline ModifyEndpointAccessRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
128 
133  inline ModifyEndpointAccessRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
134 
135  private:
136 
137  Aws::String m_endpointName;
138  bool m_endpointNameHasBeenSet;
139 
140  Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
141  bool m_vpcSecurityGroupIdsHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace Redshift
146 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ModifyEndpointAccessRequest::SetVpcSecurityGroupIds
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyEndpointAccessRequest.h:97
Aws::Redshift::Model::ModifyEndpointAccessRequest::WithEndpointName
ModifyEndpointAccessRequest & WithEndpointName(Aws::String &&value)
Definition: ModifyEndpointAccessRequest.h:73
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::ModifyEndpointAccessRequest::GetVpcSecurityGroupIds
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Definition: ModifyEndpointAccessRequest.h:85
Aws::Redshift::Model::ModifyEndpointAccessRequest
Definition: ModifyEndpointAccessRequest.h:23
RedshiftRequest.h
Aws::Redshift::Model::ModifyEndpointAccessRequest::WithEndpointName
ModifyEndpointAccessRequest & WithEndpointName(const char *value)
Definition: ModifyEndpointAccessRequest.h:78
Aws::Redshift::Model::ModifyEndpointAccessRequest::GetEndpointName
const Aws::String & GetEndpointName() const
Definition: ModifyEndpointAccessRequest.h:43
AWSVector.h
Aws::Redshift::Model::ModifyEndpointAccessRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::ModifyEndpointAccessRequest::SetVpcSecurityGroupIds
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyEndpointAccessRequest.h:103
Aws::Redshift::Model::ModifyEndpointAccessRequest::VpcSecurityGroupIdsHasBeenSet
bool VpcSecurityGroupIdsHasBeenSet() const
Definition: ModifyEndpointAccessRequest.h:91
Aws::Redshift::Model::ModifyEndpointAccessRequest::SetEndpointName
void SetEndpointName(const char *value)
Definition: ModifyEndpointAccessRequest.h:63
Aws::Redshift::Model::ModifyEndpointAccessRequest::WithVpcSecurityGroupIds
ModifyEndpointAccessRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyEndpointAccessRequest.h:115
Aws::Redshift::Model::ModifyEndpointAccessRequest::EndpointNameHasBeenSet
bool EndpointNameHasBeenSet() const
Definition: ModifyEndpointAccessRequest.h:48
Aws::Redshift::Model::ModifyEndpointAccessRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyEndpointAccessRequest.h:31
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ModifyEndpointAccessRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::ModifyEndpointAccessRequest::AddVpcSecurityGroupIds
ModifyEndpointAccessRequest & AddVpcSecurityGroupIds(Aws::String &&value)
Definition: ModifyEndpointAccessRequest.h:127
AWSString.h
Aws::Redshift::Model::ModifyEndpointAccessRequest::AddVpcSecurityGroupIds
ModifyEndpointAccessRequest & AddVpcSecurityGroupIds(const char *value)
Definition: ModifyEndpointAccessRequest.h:133
Aws::Redshift::Model::ModifyEndpointAccessRequest::WithVpcSecurityGroupIds
ModifyEndpointAccessRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyEndpointAccessRequest.h:109
Aws::Redshift::Model::ModifyEndpointAccessRequest::SetEndpointName
void SetEndpointName(Aws::String &&value)
Definition: ModifyEndpointAccessRequest.h:58
Aws::Redshift::Model::ModifyEndpointAccessRequest::SetEndpointName
void SetEndpointName(const Aws::String &value)
Definition: ModifyEndpointAccessRequest.h:53
Aws::Redshift::Model::ModifyEndpointAccessRequest::WithEndpointName
ModifyEndpointAccessRequest & WithEndpointName(const Aws::String &value)
Definition: ModifyEndpointAccessRequest.h:68
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::ModifyEndpointAccessRequest::AddVpcSecurityGroupIds
ModifyEndpointAccessRequest & AddVpcSecurityGroupIds(const Aws::String &value)
Definition: ModifyEndpointAccessRequest.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifyEndpointAccessRequest::ModifyEndpointAccessRequest
ModifyEndpointAccessRequest()