AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyEndpointAccessRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFT_API ModifyEndpointAccessRequest();
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_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
45 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
46 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
47 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
48 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
49 inline ModifyEndpointAccessRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
50 inline ModifyEndpointAccessRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
51 inline ModifyEndpointAccessRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
60 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
61 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
62 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
65 inline ModifyEndpointAccessRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
66 inline ModifyEndpointAccessRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
67 inline ModifyEndpointAccessRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
69 private:
70
71 Aws::String m_endpointName;
72 bool m_endpointNameHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
75 bool m_vpcSecurityGroupIdsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Redshift
80} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
ModifyEndpointAccessRequest & WithEndpointName(Aws::String &&value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyEndpointAccessRequest & AddVpcSecurityGroupIds(const char *value)
ModifyEndpointAccessRequest & AddVpcSecurityGroupIds(Aws::String &&value)
ModifyEndpointAccessRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyEndpointAccessRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyEndpointAccessRequest & AddVpcSecurityGroupIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ModifyEndpointAccessRequest & WithEndpointName(const char *value)
ModifyEndpointAccessRequest & WithEndpointName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector