AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateMeshRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/AppMeshRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appmesh/model/MeshSpec.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/appmesh/model/TagRef.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace AppMesh
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_APPMESH_API CreateMeshRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateMesh"; }
38
39 AWS_APPMESH_API Aws::String SerializePayload() const override;
40
41
43
48 inline const Aws::String& GetClientToken() const { return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateMeshRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
60 inline const Aws::String& GetMeshName() const { return m_meshName; }
61 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
62 template<typename MeshNameT = Aws::String>
63 void SetMeshName(MeshNameT&& value) { m_meshNameHasBeenSet = true; m_meshName = std::forward<MeshNameT>(value); }
64 template<typename MeshNameT = Aws::String>
65 CreateMeshRequest& WithMeshName(MeshNameT&& value) { SetMeshName(std::forward<MeshNameT>(value)); return *this;}
67
69
72 inline const MeshSpec& GetSpec() const { return m_spec; }
73 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
74 template<typename SpecT = MeshSpec>
75 void SetSpec(SpecT&& value) { m_specHasBeenSet = true; m_spec = std::forward<SpecT>(value); }
76 template<typename SpecT = MeshSpec>
77 CreateMeshRequest& WithSpec(SpecT&& value) { SetSpec(std::forward<SpecT>(value)); return *this;}
79
81
87 inline const Aws::Vector<TagRef>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template<typename TagsT = Aws::Vector<TagRef>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Vector<TagRef>>
92 CreateMeshRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = TagRef>
94 CreateMeshRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96 private:
97
99 bool m_clientTokenHasBeenSet = true;
100
101 Aws::String m_meshName;
102 bool m_meshNameHasBeenSet = false;
103
104 MeshSpec m_spec;
105 bool m_specHasBeenSet = false;
106
107 Aws::Vector<TagRef> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace AppMesh
113} // namespace Aws
CreateMeshRequest & WithTags(TagsT &&value)
CreateMeshRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateMeshRequest & WithClientToken(ClientTokenT &&value)
void SetClientToken(ClientTokenT &&value)
AWS_APPMESH_API Aws::String SerializePayload() const override
CreateMeshRequest & WithSpec(SpecT &&value)
const Aws::String & GetMeshName() const
const Aws::Vector< TagRef > & GetTags() const
const Aws::String & GetClientToken() const
CreateMeshRequest & WithMeshName(MeshNameT &&value)
AWS_APPMESH_API CreateMeshRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector