AWS SDK for C++  0.14.3
AWS SDK for C++
AllocatePublicVirtualInterfaceRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace DirectConnect
24 {
25 namespace Model
26 {
27 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
44  inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
45 
50  inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
51 
56  inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
57 
62  inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
63 
68  inline AllocatePublicVirtualInterfaceRequest& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
69 
74  inline AllocatePublicVirtualInterfaceRequest& WithConnectionId(Aws::String&& value) { SetConnectionId(value); return *this;}
75 
80  inline AllocatePublicVirtualInterfaceRequest& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
81 
86  inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
87 
92  inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
93 
98  inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
99 
104  inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
105 
110  inline AllocatePublicVirtualInterfaceRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
111 
116  inline AllocatePublicVirtualInterfaceRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(value); return *this;}
117 
122  inline AllocatePublicVirtualInterfaceRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
123 
128  inline const NewPublicVirtualInterfaceAllocation& GetNewPublicVirtualInterfaceAllocation() const{ return m_newPublicVirtualInterfaceAllocation; }
129 
134  inline void SetNewPublicVirtualInterfaceAllocation(const NewPublicVirtualInterfaceAllocation& value) { m_newPublicVirtualInterfaceAllocationHasBeenSet = true; m_newPublicVirtualInterfaceAllocation = value; }
135 
140  inline void SetNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocation&& value) { m_newPublicVirtualInterfaceAllocationHasBeenSet = true; m_newPublicVirtualInterfaceAllocation = value; }
141 
146  inline AllocatePublicVirtualInterfaceRequest& WithNewPublicVirtualInterfaceAllocation(const NewPublicVirtualInterfaceAllocation& value) { SetNewPublicVirtualInterfaceAllocation(value); return *this;}
147 
152  inline AllocatePublicVirtualInterfaceRequest& WithNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocation&& value) { SetNewPublicVirtualInterfaceAllocation(value); return *this;}
153 
154  private:
155  Aws::String m_connectionId;
156  bool m_connectionIdHasBeenSet;
157  Aws::String m_ownerAccount;
158  bool m_ownerAccountHasBeenSet;
159  NewPublicVirtualInterfaceAllocation m_newPublicVirtualInterfaceAllocation;
160  bool m_newPublicVirtualInterfaceAllocationHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace DirectConnect
165 } // namespace Aws
AllocatePublicVirtualInterfaceRequest & WithNewPublicVirtualInterfaceAllocation(const NewPublicVirtualInterfaceAllocation &value)
void SetNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocation &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
AllocatePublicVirtualInterfaceRequest & WithOwnerAccount(Aws::String &&value)
AllocatePublicVirtualInterfaceRequest & WithOwnerAccount(const Aws::String &value)
#define AWS_DIRECTCONNECT_API
AllocatePublicVirtualInterfaceRequest & WithOwnerAccount(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AllocatePublicVirtualInterfaceRequest & WithConnectionId(const Aws::String &value)
AllocatePublicVirtualInterfaceRequest & WithNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocation &&value)
const NewPublicVirtualInterfaceAllocation & GetNewPublicVirtualInterfaceAllocation() const
AllocatePublicVirtualInterfaceRequest & WithConnectionId(Aws::String &&value)
AllocatePublicVirtualInterfaceRequest & WithConnectionId(const char *value)
void SetNewPublicVirtualInterfaceAllocation(const NewPublicVirtualInterfaceAllocation &value)
JSON (JavaScript Object Notation).