AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateResourceGatewayRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.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 VPCLattice
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_VPCLATTICE_API UpdateResourceGatewayRequest() = default;
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 "UpdateResourceGateway"; }
32
33 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetResourceGatewayIdentifier() const { return m_resourceGatewayIdentifier; }
41 inline bool ResourceGatewayIdentifierHasBeenSet() const { return m_resourceGatewayIdentifierHasBeenSet; }
42 template<typename ResourceGatewayIdentifierT = Aws::String>
43 void SetResourceGatewayIdentifier(ResourceGatewayIdentifierT&& value) { m_resourceGatewayIdentifierHasBeenSet = true; m_resourceGatewayIdentifier = std::forward<ResourceGatewayIdentifierT>(value); }
44 template<typename ResourceGatewayIdentifierT = Aws::String>
45 UpdateResourceGatewayRequest& WithResourceGatewayIdentifier(ResourceGatewayIdentifierT&& value) { SetResourceGatewayIdentifier(std::forward<ResourceGatewayIdentifierT>(value)); return *this;}
47
49
52 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
53 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
54 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
55 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
56 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
57 UpdateResourceGatewayRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
58 template<typename SecurityGroupIdsT = Aws::String>
59 UpdateResourceGatewayRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
61 private:
62
63 Aws::String m_resourceGatewayIdentifier;
64 bool m_resourceGatewayIdentifierHasBeenSet = false;
65
66 Aws::Vector<Aws::String> m_securityGroupIds;
67 bool m_securityGroupIdsHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace VPCLattice
72} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
UpdateResourceGatewayRequest & WithResourceGatewayIdentifier(ResourceGatewayIdentifierT &&value)
UpdateResourceGatewayRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_VPCLATTICE_API UpdateResourceGatewayRequest()=default
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
UpdateResourceGatewayRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetResourceGatewayIdentifier(ResourceGatewayIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector