AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkspaceImageRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKSPACES_API CreateWorkspaceImageRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspaceImage"; }
33
34 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateWorkspaceImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateWorkspaceImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateWorkspaceImageRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CreateWorkspaceImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateWorkspaceImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateWorkspaceImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
72 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
73 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
74 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
75 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
76 inline CreateWorkspaceImageRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
77 inline CreateWorkspaceImageRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
78 inline CreateWorkspaceImageRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
80
82
87 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
90 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
91 inline CreateWorkspaceImageRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
92 inline CreateWorkspaceImageRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
93 inline CreateWorkspaceImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
94 inline CreateWorkspaceImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::String m_description;
102 bool m_descriptionHasBeenSet = false;
103
104 Aws::String m_workspaceId;
105 bool m_workspaceIdHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace WorkSpaces
113} // namespace Aws
CreateWorkspaceImageRequest & WithDescription(Aws::String &&value)
CreateWorkspaceImageRequest & WithDescription(const char *value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWorkspaceImageRequest & WithTags(const Aws::Vector< Tag > &value)
CreateWorkspaceImageRequest & AddTags(const Tag &value)
CreateWorkspaceImageRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWorkspaceImageRequest & WithWorkspaceId(Aws::String &&value)
CreateWorkspaceImageRequest & WithWorkspaceId(const char *value)
CreateWorkspaceImageRequest & WithDescription(const Aws::String &value)
CreateWorkspaceImageRequest & WithName(const Aws::String &value)
CreateWorkspaceImageRequest & WithName(Aws::String &&value)
CreateWorkspaceImageRequest & WithName(const char *value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
CreateWorkspaceImageRequest & WithWorkspaceId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector