AWS SDK for C++  1.8.7
AWS SDK for C++
UpdateFleetPortSettingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetPortSettings"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
46  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
47 
52  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
53 
58  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
59 
64  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
65 
70  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
71 
76  inline UpdateFleetPortSettingsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
77 
82  inline UpdateFleetPortSettingsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
83 
88  inline UpdateFleetPortSettingsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
89 
90 
94  inline const Aws::Vector<IpPermission>& GetInboundPermissionAuthorizations() const{ return m_inboundPermissionAuthorizations; }
95 
99  inline bool InboundPermissionAuthorizationsHasBeenSet() const { return m_inboundPermissionAuthorizationsHasBeenSet; }
100 
104  inline void SetInboundPermissionAuthorizations(const Aws::Vector<IpPermission>& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations = value; }
105 
109  inline void SetInboundPermissionAuthorizations(Aws::Vector<IpPermission>&& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations = std::move(value); }
110 
114  inline UpdateFleetPortSettingsRequest& WithInboundPermissionAuthorizations(const Aws::Vector<IpPermission>& value) { SetInboundPermissionAuthorizations(value); return *this;}
115 
119  inline UpdateFleetPortSettingsRequest& WithInboundPermissionAuthorizations(Aws::Vector<IpPermission>&& value) { SetInboundPermissionAuthorizations(std::move(value)); return *this;}
120 
124  inline UpdateFleetPortSettingsRequest& AddInboundPermissionAuthorizations(const IpPermission& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations.push_back(value); return *this; }
125 
129  inline UpdateFleetPortSettingsRequest& AddInboundPermissionAuthorizations(IpPermission&& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations.push_back(std::move(value)); return *this; }
130 
131 
135  inline const Aws::Vector<IpPermission>& GetInboundPermissionRevocations() const{ return m_inboundPermissionRevocations; }
136 
140  inline bool InboundPermissionRevocationsHasBeenSet() const { return m_inboundPermissionRevocationsHasBeenSet; }
141 
145  inline void SetInboundPermissionRevocations(const Aws::Vector<IpPermission>& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations = value; }
146 
150  inline void SetInboundPermissionRevocations(Aws::Vector<IpPermission>&& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations = std::move(value); }
151 
155  inline UpdateFleetPortSettingsRequest& WithInboundPermissionRevocations(const Aws::Vector<IpPermission>& value) { SetInboundPermissionRevocations(value); return *this;}
156 
160  inline UpdateFleetPortSettingsRequest& WithInboundPermissionRevocations(Aws::Vector<IpPermission>&& value) { SetInboundPermissionRevocations(std::move(value)); return *this;}
161 
165  inline UpdateFleetPortSettingsRequest& AddInboundPermissionRevocations(const IpPermission& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations.push_back(value); return *this; }
166 
170  inline UpdateFleetPortSettingsRequest& AddInboundPermissionRevocations(IpPermission&& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations.push_back(std::move(value)); return *this; }
171 
172  private:
173 
174  Aws::String m_fleetId;
175  bool m_fleetIdHasBeenSet;
176 
177  Aws::Vector<IpPermission> m_inboundPermissionAuthorizations;
178  bool m_inboundPermissionAuthorizationsHasBeenSet;
179 
180  Aws::Vector<IpPermission> m_inboundPermissionRevocations;
181  bool m_inboundPermissionRevocationsHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace GameLift
186 } // namespace Aws
UpdateFleetPortSettingsRequest & WithInboundPermissionAuthorizations(const Aws::Vector< IpPermission > &value)
#define AWS_GAMELIFT_API
UpdateFleetPortSettingsRequest & WithInboundPermissionRevocations(const Aws::Vector< IpPermission > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UpdateFleetPortSettingsRequest & WithFleetId(Aws::String &&value)
void SetInboundPermissionAuthorizations(Aws::Vector< IpPermission > &&value)
UpdateFleetPortSettingsRequest & WithFleetId(const Aws::String &value)
void SetInboundPermissionRevocations(const Aws::Vector< IpPermission > &value)
UpdateFleetPortSettingsRequest & AddInboundPermissionAuthorizations(IpPermission &&value)
UpdateFleetPortSettingsRequest & WithInboundPermissionRevocations(Aws::Vector< IpPermission > &&value)
UpdateFleetPortSettingsRequest & AddInboundPermissionRevocations(const IpPermission &value)
void SetInboundPermissionRevocations(Aws::Vector< IpPermission > &&value)
UpdateFleetPortSettingsRequest & WithFleetId(const char *value)
const Aws::Vector< IpPermission > & GetInboundPermissionRevocations() const
UpdateFleetPortSettingsRequest & AddInboundPermissionRevocations(IpPermission &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< IpPermission > & GetInboundPermissionAuthorizations() const
UpdateFleetPortSettingsRequest & WithInboundPermissionAuthorizations(Aws::Vector< IpPermission > &&value)
void SetInboundPermissionAuthorizations(const Aws::Vector< IpPermission > &value)
UpdateFleetPortSettingsRequest & AddInboundPermissionAuthorizations(const IpPermission &value)