AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateApplicationVersionRequest.h
1
6#pragma once
7#include <aws/serverlessrepo/ServerlessApplicationRepository_EXPORTS.h>
8#include <aws/serverlessrepo/ServerlessApplicationRepositoryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ServerlessApplicationRepository
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_SERVERLESSAPPLICATIONREPOSITORY_API CreateApplicationVersionRequest() = 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 "CreateApplicationVersion"; }
31
32 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
40 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
41 template<typename ApplicationIdT = Aws::String>
42 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
43 template<typename ApplicationIdT = Aws::String>
44 CreateApplicationVersionRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
46
48
51 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
52 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
53 template<typename SemanticVersionT = Aws::String>
54 void SetSemanticVersion(SemanticVersionT&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::forward<SemanticVersionT>(value); }
55 template<typename SemanticVersionT = Aws::String>
56 CreateApplicationVersionRequest& WithSemanticVersion(SemanticVersionT&& value) { SetSemanticVersion(std::forward<SemanticVersionT>(value)); return *this;}
58
60
64 inline const Aws::String& GetSourceCodeArchiveUrl() const { return m_sourceCodeArchiveUrl; }
65 inline bool SourceCodeArchiveUrlHasBeenSet() const { return m_sourceCodeArchiveUrlHasBeenSet; }
66 template<typename SourceCodeArchiveUrlT = Aws::String>
67 void SetSourceCodeArchiveUrl(SourceCodeArchiveUrlT&& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = std::forward<SourceCodeArchiveUrlT>(value); }
68 template<typename SourceCodeArchiveUrlT = Aws::String>
69 CreateApplicationVersionRequest& WithSourceCodeArchiveUrl(SourceCodeArchiveUrlT&& value) { SetSourceCodeArchiveUrl(std::forward<SourceCodeArchiveUrlT>(value)); return *this;}
71
73
77 inline const Aws::String& GetSourceCodeUrl() const { return m_sourceCodeUrl; }
78 inline bool SourceCodeUrlHasBeenSet() const { return m_sourceCodeUrlHasBeenSet; }
79 template<typename SourceCodeUrlT = Aws::String>
80 void SetSourceCodeUrl(SourceCodeUrlT&& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = std::forward<SourceCodeUrlT>(value); }
81 template<typename SourceCodeUrlT = Aws::String>
82 CreateApplicationVersionRequest& WithSourceCodeUrl(SourceCodeUrlT&& value) { SetSourceCodeUrl(std::forward<SourceCodeUrlT>(value)); return *this;}
84
86
89 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
90 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
91 template<typename TemplateBodyT = Aws::String>
92 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
93 template<typename TemplateBodyT = Aws::String>
94 CreateApplicationVersionRequest& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
96
98
101 inline const Aws::String& GetTemplateUrl() const { return m_templateUrl; }
102 inline bool TemplateUrlHasBeenSet() const { return m_templateUrlHasBeenSet; }
103 template<typename TemplateUrlT = Aws::String>
104 void SetTemplateUrl(TemplateUrlT&& value) { m_templateUrlHasBeenSet = true; m_templateUrl = std::forward<TemplateUrlT>(value); }
105 template<typename TemplateUrlT = Aws::String>
106 CreateApplicationVersionRequest& WithTemplateUrl(TemplateUrlT&& value) { SetTemplateUrl(std::forward<TemplateUrlT>(value)); return *this;}
108 private:
109
110 Aws::String m_applicationId;
111 bool m_applicationIdHasBeenSet = false;
112
113 Aws::String m_semanticVersion;
114 bool m_semanticVersionHasBeenSet = false;
115
116 Aws::String m_sourceCodeArchiveUrl;
117 bool m_sourceCodeArchiveUrlHasBeenSet = false;
118
119 Aws::String m_sourceCodeUrl;
120 bool m_sourceCodeUrlHasBeenSet = false;
121
122 Aws::String m_templateBody;
123 bool m_templateBodyHasBeenSet = false;
124
125 Aws::String m_templateUrl;
126 bool m_templateUrlHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ServerlessApplicationRepository
131} // namespace Aws
AWS_SERVERLESSAPPLICATIONREPOSITORY_API CreateApplicationVersionRequest()=default
CreateApplicationVersionRequest & WithSemanticVersion(SemanticVersionT &&value)
CreateApplicationVersionRequest & WithSourceCodeArchiveUrl(SourceCodeArchiveUrlT &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String