AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTransitGatewayPeeringRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/networkmanager/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace NetworkManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_NETWORKMANAGER_API CreateTransitGatewayPeeringRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTransitGatewayPeering"; }
34
35 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; }
43 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
44 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
45 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
46 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
48 inline CreateTransitGatewayPeeringRequest& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
49 inline CreateTransitGatewayPeeringRequest& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
51
53
56 inline const Aws::String& GetTransitGatewayArn() const{ return m_transitGatewayArn; }
57 inline bool TransitGatewayArnHasBeenSet() const { return m_transitGatewayArnHasBeenSet; }
58 inline void SetTransitGatewayArn(const Aws::String& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = value; }
59 inline void SetTransitGatewayArn(Aws::String&& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = std::move(value); }
60 inline void SetTransitGatewayArn(const char* value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn.assign(value); }
63 inline CreateTransitGatewayPeeringRequest& WithTransitGatewayArn(const char* value) { SetTransitGatewayArn(value); return *this;}
65
67
70 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
73 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
74 inline CreateTransitGatewayPeeringRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
75 inline CreateTransitGatewayPeeringRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
76 inline CreateTransitGatewayPeeringRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
77 inline CreateTransitGatewayPeeringRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
79
81
84 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
85 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
86 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
87 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
88 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
90 inline CreateTransitGatewayPeeringRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
91 inline CreateTransitGatewayPeeringRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
93 private:
94
95 Aws::String m_coreNetworkId;
96 bool m_coreNetworkIdHasBeenSet = false;
97
98 Aws::String m_transitGatewayArn;
99 bool m_transitGatewayArnHasBeenSet = false;
100
101 Aws::Vector<Tag> m_tags;
102 bool m_tagsHasBeenSet = false;
103
104 Aws::String m_clientToken;
105 bool m_clientTokenHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace NetworkManager
110} // namespace Aws
CreateTransitGatewayPeeringRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTransitGatewayPeeringRequest & WithClientToken(Aws::String &&value)
CreateTransitGatewayPeeringRequest & WithTransitGatewayArn(const Aws::String &value)
CreateTransitGatewayPeeringRequest & WithTransitGatewayArn(const char *value)
CreateTransitGatewayPeeringRequest & WithCoreNetworkId(const char *value)
CreateTransitGatewayPeeringRequest & WithClientToken(const char *value)
CreateTransitGatewayPeeringRequest & WithCoreNetworkId(const Aws::String &value)
CreateTransitGatewayPeeringRequest & WithClientToken(const Aws::String &value)
CreateTransitGatewayPeeringRequest & WithCoreNetworkId(Aws::String &&value)
CreateTransitGatewayPeeringRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateTransitGatewayPeeringRequest & WithTransitGatewayArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector