AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAppBlockRequest.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/AppStreamRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appstream/model/S3Location.h>
11#include <aws/appstream/model/ScriptDetails.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/appstream/model/PackagingType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace AppStream
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPSTREAM_API CreateAppBlockRequest() = 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 "CreateAppBlock"; }
35
36 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateAppBlockRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateAppBlockRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDisplayName() const { return m_displayName; }
70 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
71 template<typename DisplayNameT = Aws::String>
72 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
73 template<typename DisplayNameT = Aws::String>
74 CreateAppBlockRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
76
78
81 inline const S3Location& GetSourceS3Location() const { return m_sourceS3Location; }
82 inline bool SourceS3LocationHasBeenSet() const { return m_sourceS3LocationHasBeenSet; }
83 template<typename SourceS3LocationT = S3Location>
84 void SetSourceS3Location(SourceS3LocationT&& value) { m_sourceS3LocationHasBeenSet = true; m_sourceS3Location = std::forward<SourceS3LocationT>(value); }
85 template<typename SourceS3LocationT = S3Location>
86 CreateAppBlockRequest& WithSourceS3Location(SourceS3LocationT&& value) { SetSourceS3Location(std::forward<SourceS3LocationT>(value)); return *this;}
88
90
94 inline const ScriptDetails& GetSetupScriptDetails() const { return m_setupScriptDetails; }
95 inline bool SetupScriptDetailsHasBeenSet() const { return m_setupScriptDetailsHasBeenSet; }
96 template<typename SetupScriptDetailsT = ScriptDetails>
97 void SetSetupScriptDetails(SetupScriptDetailsT&& value) { m_setupScriptDetailsHasBeenSet = true; m_setupScriptDetails = std::forward<SetupScriptDetailsT>(value); }
98 template<typename SetupScriptDetailsT = ScriptDetails>
99 CreateAppBlockRequest& WithSetupScriptDetails(SetupScriptDetailsT&& value) { SetSetupScriptDetails(std::forward<SetupScriptDetailsT>(value)); return *this;}
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 CreateAppBlockRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
113 CreateAppBlockRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
114 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
115 }
117
119
123 inline const ScriptDetails& GetPostSetupScriptDetails() const { return m_postSetupScriptDetails; }
124 inline bool PostSetupScriptDetailsHasBeenSet() const { return m_postSetupScriptDetailsHasBeenSet; }
125 template<typename PostSetupScriptDetailsT = ScriptDetails>
126 void SetPostSetupScriptDetails(PostSetupScriptDetailsT&& value) { m_postSetupScriptDetailsHasBeenSet = true; m_postSetupScriptDetails = std::forward<PostSetupScriptDetailsT>(value); }
127 template<typename PostSetupScriptDetailsT = ScriptDetails>
128 CreateAppBlockRequest& WithPostSetupScriptDetails(PostSetupScriptDetailsT&& value) { SetPostSetupScriptDetails(std::forward<PostSetupScriptDetailsT>(value)); return *this;}
130
132
135 inline PackagingType GetPackagingType() const { return m_packagingType; }
136 inline bool PackagingTypeHasBeenSet() const { return m_packagingTypeHasBeenSet; }
137 inline void SetPackagingType(PackagingType value) { m_packagingTypeHasBeenSet = true; m_packagingType = value; }
140 private:
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_displayName;
149 bool m_displayNameHasBeenSet = false;
150
151 S3Location m_sourceS3Location;
152 bool m_sourceS3LocationHasBeenSet = false;
153
154 ScriptDetails m_setupScriptDetails;
155 bool m_setupScriptDetailsHasBeenSet = false;
156
158 bool m_tagsHasBeenSet = false;
159
160 ScriptDetails m_postSetupScriptDetails;
161 bool m_postSetupScriptDetailsHasBeenSet = false;
162
163 PackagingType m_packagingType{PackagingType::NOT_SET};
164 bool m_packagingTypeHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace AppStream
169} // namespace Aws
CreateAppBlockRequest & WithName(NameT &&value)
CreateAppBlockRequest & WithPostSetupScriptDetails(PostSetupScriptDetailsT &&value)
AWS_APPSTREAM_API CreateAppBlockRequest()=default
const ScriptDetails & GetSetupScriptDetails() const
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAppBlockRequest & WithPackagingType(PackagingType value)
CreateAppBlockRequest & WithTags(TagsT &&value)
void SetSetupScriptDetails(SetupScriptDetailsT &&value)
CreateAppBlockRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSourceS3Location(SourceS3LocationT &&value)
CreateAppBlockRequest & WithDisplayName(DisplayNameT &&value)
CreateAppBlockRequest & WithDescription(DescriptionT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
CreateAppBlockRequest & WithSetupScriptDetails(SetupScriptDetailsT &&value)
const ScriptDetails & GetPostSetupScriptDetails() const
CreateAppBlockRequest & WithSourceS3Location(SourceS3LocationT &&value)
void SetPostSetupScriptDetails(PostSetupScriptDetailsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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