AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline CreateMeshRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
54 inline CreateMeshRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline CreateMeshRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
62 inline const Aws::String& GetMeshName() const{ return m_meshName; }
63 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
64 inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
65 inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
66 inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
67 inline CreateMeshRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
68 inline CreateMeshRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
69 inline CreateMeshRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
71
73
76 inline const MeshSpec& GetSpec() const{ return m_spec; }
77 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
78 inline void SetSpec(const MeshSpec& value) { m_specHasBeenSet = true; m_spec = value; }
79 inline void SetSpec(MeshSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
80 inline CreateMeshRequest& WithSpec(const MeshSpec& value) { SetSpec(value); return *this;}
81 inline CreateMeshRequest& WithSpec(MeshSpec&& value) { SetSpec(std::move(value)); return *this;}
83
85
91 inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreateMeshRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
96 inline CreateMeshRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateMeshRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline CreateMeshRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_clientToken;
103 bool m_clientTokenHasBeenSet = false;
104
105 Aws::String m_meshName;
106 bool m_meshNameHasBeenSet = false;
107
108 MeshSpec m_spec;
109 bool m_specHasBeenSet = false;
110
111 Aws::Vector<TagRef> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AppMesh
117} // namespace Aws
CreateMeshRequest & AddTags(const TagRef &value)
CreateMeshRequest & WithMeshName(const Aws::String &value)
CreateMeshRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_APPMESH_API Aws::String SerializePayload() const override
CreateMeshRequest & WithMeshName(const char *value)
CreateMeshRequest & WithSpec(MeshSpec &&value)
const Aws::String & GetMeshName() const
const Aws::Vector< TagRef > & GetTags() const
CreateMeshRequest & WithMeshName(Aws::String &&value)
const Aws::String & GetClientToken() const
CreateMeshRequest & WithClientToken(const Aws::String &value)
void SetClientToken(const Aws::String &value)
CreateMeshRequest & AddTags(TagRef &&value)
CreateMeshRequest & WithSpec(const MeshSpec &value)
void SetTags(Aws::Vector< TagRef > &&value)
CreateMeshRequest & WithTags(const Aws::Vector< TagRef > &value)
CreateMeshRequest & WithTags(Aws::Vector< TagRef > &&value)
void SetMeshName(const Aws::String &value)
CreateMeshRequest & WithClientToken(Aws::String &&value)
void SetSpec(const MeshSpec &value)
void SetClientToken(Aws::String &&value)
void SetTags(const Aws::Vector< TagRef > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector