AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
42 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
43 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
45 inline CreateApplicationVersionRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
46 inline CreateApplicationVersionRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
48
50
53 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
54 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
55 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
56 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
57 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
59 inline CreateApplicationVersionRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
60 inline CreateApplicationVersionRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
62
64
68 inline const Aws::String& GetSourceCodeArchiveUrl() const{ return m_sourceCodeArchiveUrl; }
69 inline bool SourceCodeArchiveUrlHasBeenSet() const { return m_sourceCodeArchiveUrlHasBeenSet; }
70 inline void SetSourceCodeArchiveUrl(const Aws::String& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = value; }
71 inline void SetSourceCodeArchiveUrl(Aws::String&& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = std::move(value); }
72 inline void SetSourceCodeArchiveUrl(const char* value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl.assign(value); }
75 inline CreateApplicationVersionRequest& WithSourceCodeArchiveUrl(const char* value) { SetSourceCodeArchiveUrl(value); return *this;}
77
79
83 inline const Aws::String& GetSourceCodeUrl() const{ return m_sourceCodeUrl; }
84 inline bool SourceCodeUrlHasBeenSet() const { return m_sourceCodeUrlHasBeenSet; }
85 inline void SetSourceCodeUrl(const Aws::String& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = value; }
86 inline void SetSourceCodeUrl(Aws::String&& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = std::move(value); }
87 inline void SetSourceCodeUrl(const char* value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl.assign(value); }
89 inline CreateApplicationVersionRequest& WithSourceCodeUrl(Aws::String&& value) { SetSourceCodeUrl(std::move(value)); return *this;}
90 inline CreateApplicationVersionRequest& WithSourceCodeUrl(const char* value) { SetSourceCodeUrl(value); return *this;}
92
94
97 inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
98 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
99 inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
100 inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
101 inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
103 inline CreateApplicationVersionRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
104 inline CreateApplicationVersionRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
106
108
111 inline const Aws::String& GetTemplateUrl() const{ return m_templateUrl; }
112 inline bool TemplateUrlHasBeenSet() const { return m_templateUrlHasBeenSet; }
113 inline void SetTemplateUrl(const Aws::String& value) { m_templateUrlHasBeenSet = true; m_templateUrl = value; }
114 inline void SetTemplateUrl(Aws::String&& value) { m_templateUrlHasBeenSet = true; m_templateUrl = std::move(value); }
115 inline void SetTemplateUrl(const char* value) { m_templateUrlHasBeenSet = true; m_templateUrl.assign(value); }
116 inline CreateApplicationVersionRequest& WithTemplateUrl(const Aws::String& value) { SetTemplateUrl(value); return *this;}
117 inline CreateApplicationVersionRequest& WithTemplateUrl(Aws::String&& value) { SetTemplateUrl(std::move(value)); return *this;}
118 inline CreateApplicationVersionRequest& WithTemplateUrl(const char* value) { SetTemplateUrl(value); return *this;}
120 private:
121
122 Aws::String m_applicationId;
123 bool m_applicationIdHasBeenSet = false;
124
125 Aws::String m_semanticVersion;
126 bool m_semanticVersionHasBeenSet = false;
127
128 Aws::String m_sourceCodeArchiveUrl;
129 bool m_sourceCodeArchiveUrlHasBeenSet = false;
130
131 Aws::String m_sourceCodeUrl;
132 bool m_sourceCodeUrlHasBeenSet = false;
133
134 Aws::String m_templateBody;
135 bool m_templateBodyHasBeenSet = false;
136
137 Aws::String m_templateUrl;
138 bool m_templateUrlHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ServerlessApplicationRepository
143} // namespace Aws
CreateApplicationVersionRequest & WithSemanticVersion(const Aws::String &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API CreateApplicationVersionRequest()
CreateApplicationVersionRequest & WithSourceCodeUrl(const Aws::String &value)
CreateApplicationVersionRequest & WithApplicationId(const Aws::String &value)
CreateApplicationVersionRequest & WithSourceCodeArchiveUrl(const Aws::String &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String