AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
UpdateImageBuilderRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/ImageBuilderAgentAccessConfigForUpdate.h>
10#include <aws/appstream/model/ImageBuilderAttribute.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppStream {
18namespace Model {
19
23 public:
24 AWS_APPSTREAM_API UpdateImageBuilderRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateImageBuilder"; }
31
32 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDisplayName() const { return m_displayName; }
77 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
78 template <typename DisplayNameT = Aws::String>
79 void SetDisplayName(DisplayNameT&& value) {
80 m_displayNameHasBeenSet = true;
81 m_displayName = std::forward<DisplayNameT>(value);
82 }
83 template <typename DisplayNameT = Aws::String>
85 SetDisplayName(std::forward<DisplayNameT>(value));
86 return *this;
87 }
89
91
96 inline const ImageBuilderAgentAccessConfigForUpdate& GetAgentAccessConfig() const { return m_agentAccessConfig; }
97 inline bool AgentAccessConfigHasBeenSet() const { return m_agentAccessConfigHasBeenSet; }
98 template <typename AgentAccessConfigT = ImageBuilderAgentAccessConfigForUpdate>
99 void SetAgentAccessConfig(AgentAccessConfigT&& value) {
100 m_agentAccessConfigHasBeenSet = true;
101 m_agentAccessConfig = std::forward<AgentAccessConfigT>(value);
102 }
103 template <typename AgentAccessConfigT = ImageBuilderAgentAccessConfigForUpdate>
105 SetAgentAccessConfig(std::forward<AgentAccessConfigT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<ImageBuilderAttribute>& GetAttributesToDelete() const { return m_attributesToDelete; }
115 inline bool AttributesToDeleteHasBeenSet() const { return m_attributesToDeleteHasBeenSet; }
116 template <typename AttributesToDeleteT = Aws::Vector<ImageBuilderAttribute>>
117 void SetAttributesToDelete(AttributesToDeleteT&& value) {
118 m_attributesToDeleteHasBeenSet = true;
119 m_attributesToDelete = std::forward<AttributesToDeleteT>(value);
120 }
121 template <typename AttributesToDeleteT = Aws::Vector<ImageBuilderAttribute>>
122 UpdateImageBuilderRequest& WithAttributesToDelete(AttributesToDeleteT&& value) {
123 SetAttributesToDelete(std::forward<AttributesToDeleteT>(value));
124 return *this;
125 }
127 m_attributesToDeleteHasBeenSet = true;
128 m_attributesToDelete.push_back(value);
129 return *this;
130 }
132 private:
133 Aws::String m_name;
134
135 Aws::String m_description;
136
137 Aws::String m_displayName;
138
139 ImageBuilderAgentAccessConfigForUpdate m_agentAccessConfig;
140
141 Aws::Vector<ImageBuilderAttribute> m_attributesToDelete;
142 bool m_nameHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_displayNameHasBeenSet = false;
145 bool m_agentAccessConfigHasBeenSet = false;
146 bool m_attributesToDeleteHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace AppStream
151} // namespace Aws
UpdateImageBuilderRequest & WithDescription(DescriptionT &&value)
UpdateImageBuilderRequest & WithAttributesToDelete(AttributesToDeleteT &&value)
AWS_APPSTREAM_API UpdateImageBuilderRequest()=default
virtual const char * GetServiceRequestName() const override
const ImageBuilderAgentAccessConfigForUpdate & GetAgentAccessConfig() const
UpdateImageBuilderRequest & AddAttributesToDelete(ImageBuilderAttribute value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
UpdateImageBuilderRequest & WithAgentAccessConfig(AgentAccessConfigT &&value)
UpdateImageBuilderRequest & WithName(NameT &&value)
const Aws::Vector< ImageBuilderAttribute > & GetAttributesToDelete() const
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateImageBuilderRequest & WithDisplayName(DisplayNameT &&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