AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateServiceNetworkRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/vpc-lattice/model/AuthType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/vpc-lattice/model/SharingConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace VPCLattice
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_VPCLATTICE_API CreateServiceNetworkRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceNetwork"; }
35
36 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
37
38
40
46 inline AuthType GetAuthType() const { return m_authType; }
47 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
48 inline void SetAuthType(AuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
49 inline CreateServiceNetworkRequest& WithAuthType(AuthType value) { SetAuthType(value); return *this;}
51
53
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template<typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
63 template<typename ClientTokenT = Aws::String>
64 CreateServiceNetworkRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
66
68
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 CreateServiceNetworkRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
85 inline const SharingConfig& GetSharingConfig() const { return m_sharingConfig; }
86 inline bool SharingConfigHasBeenSet() const { return m_sharingConfigHasBeenSet; }
87 template<typename SharingConfigT = SharingConfig>
88 void SetSharingConfig(SharingConfigT&& value) { m_sharingConfigHasBeenSet = true; m_sharingConfig = std::forward<SharingConfigT>(value); }
89 template<typename SharingConfigT = SharingConfig>
90 CreateServiceNetworkRequest& WithSharingConfig(SharingConfigT&& value) { SetSharingConfig(std::forward<SharingConfigT>(value)); return *this;}
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 CreateServiceNetworkRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
104 CreateServiceNetworkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
105 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
106 }
108 private:
109
110 AuthType m_authType{AuthType::NOT_SET};
111 bool m_authTypeHasBeenSet = false;
112
114 bool m_clientTokenHasBeenSet = true;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 SharingConfig m_sharingConfig;
120 bool m_sharingConfigHasBeenSet = false;
121
123 bool m_tagsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace VPCLattice
128} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateServiceNetworkRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
CreateServiceNetworkRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateServiceNetworkRequest & WithClientToken(ClientTokenT &&value)
CreateServiceNetworkRequest & WithName(NameT &&value)
AWS_VPCLATTICE_API CreateServiceNetworkRequest()=default
CreateServiceNetworkRequest & WithSharingConfig(SharingConfigT &&value)
CreateServiceNetworkRequest & WithAuthType(AuthType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String