AWS SDK for C++  0.12.9
AWS SDK for C++
CreatePrivateVirtualInterfaceRequest.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 
40 
41  inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
42 
43 
44  inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
45 
46 
47  inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
48 
49 
50  inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
51 
52 
53  inline CreatePrivateVirtualInterfaceRequest& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
54 
55 
56  inline CreatePrivateVirtualInterfaceRequest& WithConnectionId(Aws::String&& value) { SetConnectionId(value); return *this;}
57 
58 
59  inline CreatePrivateVirtualInterfaceRequest& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
60 
65  inline const NewPrivateVirtualInterface& GetNewPrivateVirtualInterface() const{ return m_newPrivateVirtualInterface; }
66 
71  inline void SetNewPrivateVirtualInterface(const NewPrivateVirtualInterface& value) { m_newPrivateVirtualInterfaceHasBeenSet = true; m_newPrivateVirtualInterface = value; }
72 
77  inline void SetNewPrivateVirtualInterface(NewPrivateVirtualInterface&& value) { m_newPrivateVirtualInterfaceHasBeenSet = true; m_newPrivateVirtualInterface = value; }
78 
83  inline CreatePrivateVirtualInterfaceRequest& WithNewPrivateVirtualInterface(const NewPrivateVirtualInterface& value) { SetNewPrivateVirtualInterface(value); return *this;}
84 
89  inline CreatePrivateVirtualInterfaceRequest& WithNewPrivateVirtualInterface(NewPrivateVirtualInterface&& value) { SetNewPrivateVirtualInterface(value); return *this;}
90 
91  private:
92  Aws::String m_connectionId;
93  bool m_connectionIdHasBeenSet;
94  NewPrivateVirtualInterface m_newPrivateVirtualInterface;
95  bool m_newPrivateVirtualInterfaceHasBeenSet;
96  };
97 
98 } // namespace Model
99 } // namespace DirectConnect
100 } // namespace Aws
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreatePrivateVirtualInterfaceRequest & WithConnectionId(const char *value)
CreatePrivateVirtualInterfaceRequest & WithNewPrivateVirtualInterface(const NewPrivateVirtualInterface &value)
#define AWS_DIRECTCONNECT_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreatePrivateVirtualInterfaceRequest & WithNewPrivateVirtualInterface(NewPrivateVirtualInterface &&value)
CreatePrivateVirtualInterfaceRequest & WithConnectionId(const Aws::String &value)
CreatePrivateVirtualInterfaceRequest & WithConnectionId(Aws::String &&value)
JSON (JavaScript Object Notation).