AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFleetPortSettingsRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/IpPermission.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetPortSettings"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
45 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
46 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
47 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
48 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
49 inline UpdateFleetPortSettingsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
50 inline UpdateFleetPortSettingsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
51 inline UpdateFleetPortSettingsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
53
55
58 inline const Aws::Vector<IpPermission>& GetInboundPermissionAuthorizations() const{ return m_inboundPermissionAuthorizations; }
59 inline bool InboundPermissionAuthorizationsHasBeenSet() const { return m_inboundPermissionAuthorizationsHasBeenSet; }
60 inline void SetInboundPermissionAuthorizations(const Aws::Vector<IpPermission>& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations = value; }
61 inline void SetInboundPermissionAuthorizations(Aws::Vector<IpPermission>&& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations = std::move(value); }
64 inline UpdateFleetPortSettingsRequest& AddInboundPermissionAuthorizations(const IpPermission& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations.push_back(value); return *this; }
65 inline UpdateFleetPortSettingsRequest& AddInboundPermissionAuthorizations(IpPermission&& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations.push_back(std::move(value)); return *this; }
67
69
72 inline const Aws::Vector<IpPermission>& GetInboundPermissionRevocations() const{ return m_inboundPermissionRevocations; }
73 inline bool InboundPermissionRevocationsHasBeenSet() const { return m_inboundPermissionRevocationsHasBeenSet; }
74 inline void SetInboundPermissionRevocations(const Aws::Vector<IpPermission>& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations = value; }
75 inline void SetInboundPermissionRevocations(Aws::Vector<IpPermission>&& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations = std::move(value); }
78 inline UpdateFleetPortSettingsRequest& AddInboundPermissionRevocations(const IpPermission& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations.push_back(value); return *this; }
79 inline UpdateFleetPortSettingsRequest& AddInboundPermissionRevocations(IpPermission&& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_fleetId;
84 bool m_fleetIdHasBeenSet = false;
85
86 Aws::Vector<IpPermission> m_inboundPermissionAuthorizations;
87 bool m_inboundPermissionAuthorizationsHasBeenSet = false;
88
89 Aws::Vector<IpPermission> m_inboundPermissionRevocations;
90 bool m_inboundPermissionRevocationsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace GameLift
95} // namespace Aws
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateFleetPortSettingsRequest & WithInboundPermissionAuthorizations(const Aws::Vector< IpPermission > &value)
UpdateFleetPortSettingsRequest & WithInboundPermissionRevocations(const Aws::Vector< IpPermission > &value)
const Aws::Vector< IpPermission > & GetInboundPermissionAuthorizations() const
void SetInboundPermissionRevocations(Aws::Vector< IpPermission > &&value)
UpdateFleetPortSettingsRequest & WithFleetId(Aws::String &&value)
const Aws::Vector< IpPermission > & GetInboundPermissionRevocations() const
UpdateFleetPortSettingsRequest & AddInboundPermissionRevocations(const IpPermission &value)
void SetInboundPermissionAuthorizations(const Aws::Vector< IpPermission > &value)
UpdateFleetPortSettingsRequest & AddInboundPermissionAuthorizations(IpPermission &&value)
UpdateFleetPortSettingsRequest & WithInboundPermissionAuthorizations(Aws::Vector< IpPermission > &&value)
void SetInboundPermissionAuthorizations(Aws::Vector< IpPermission > &&value)
UpdateFleetPortSettingsRequest & WithInboundPermissionRevocations(Aws::Vector< IpPermission > &&value)
UpdateFleetPortSettingsRequest & WithFleetId(const Aws::String &value)
void SetInboundPermissionRevocations(const Aws::Vector< IpPermission > &value)
UpdateFleetPortSettingsRequest & WithFleetId(const char *value)
UpdateFleetPortSettingsRequest & AddInboundPermissionRevocations(IpPermission &&value)
UpdateFleetPortSettingsRequest & AddInboundPermissionAuthorizations(const IpPermission &value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector