AWS SDK for C++  1.9.131
AWS SDK for C++
GetApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace ServerlessApplicationRepository
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "GetApplication"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
45 
49  inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
50 
54  inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
55 
59  inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
60 
64  inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
65 
69  inline GetApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
70 
74  inline GetApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
75 
79  inline GetApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
80 
81 
85  inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
86 
90  inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
91 
95  inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
96 
100  inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
101 
105  inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
106 
110  inline GetApplicationRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
111 
115  inline GetApplicationRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
116 
120  inline GetApplicationRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
121 
122  private:
123 
124  Aws::String m_applicationId;
125  bool m_applicationIdHasBeenSet;
126 
127  Aws::String m_semanticVersion;
128  bool m_semanticVersionHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace ServerlessApplicationRepository
133 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest
Definition: GetApplicationRequest.h:26
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::ApplicationIdHasBeenSet
bool ApplicationIdHasBeenSet() const
Definition: GetApplicationRequest.h:49
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::WithSemanticVersion
GetApplicationRequest & WithSemanticVersion(const char *value)
Definition: GetApplicationRequest.h:120
ServerlessApplicationRepository_EXPORTS.h
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::SetSemanticVersion
void SetSemanticVersion(const char *value)
Definition: GetApplicationRequest.h:105
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::SemanticVersionHasBeenSet
bool SemanticVersionHasBeenSet() const
Definition: GetApplicationRequest.h:90
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::GetApplicationId
const Aws::String & GetApplicationId() const
Definition: GetApplicationRequest.h:44
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::WithSemanticVersion
GetApplicationRequest & WithSemanticVersion(const Aws::String &value)
Definition: GetApplicationRequest.h:110
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::WithApplicationId
GetApplicationRequest & WithApplicationId(Aws::String &&value)
Definition: GetApplicationRequest.h:74
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::SetApplicationId
void SetApplicationId(const Aws::String &value)
Definition: GetApplicationRequest.h:54
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::SetSemanticVersion
void SetSemanticVersion(const Aws::String &value)
Definition: GetApplicationRequest.h:95
AWSString.h
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::WithSemanticVersion
GetApplicationRequest & WithSemanticVersion(Aws::String &&value)
Definition: GetApplicationRequest.h:115
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::WithApplicationId
GetApplicationRequest & WithApplicationId(const Aws::String &value)
Definition: GetApplicationRequest.h:69
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::GetApplicationRequest
GetApplicationRequest()
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::SetApplicationId
void SetApplicationId(const char *value)
Definition: GetApplicationRequest.h:64
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::WithApplicationId
GetApplicationRequest & WithApplicationId(const char *value)
Definition: GetApplicationRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::SetSemanticVersion
void SetSemanticVersion(Aws::String &&value)
Definition: GetApplicationRequest.h:100
Aws::ServerlessApplicationRepository::ServerlessApplicationRepositoryRequest
Definition: ServerlessApplicationRepositoryRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::SetApplicationId
void SetApplicationId(Aws::String &&value)
Definition: GetApplicationRequest.h:59
ServerlessApplicationRepositoryRequest.h
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetApplicationRequest.h:34
Aws::ServerlessApplicationRepository::Model::GetApplicationRequest::GetSemanticVersion
const Aws::String & GetSemanticVersion() const
Definition: GetApplicationRequest.h:85
AWS_SERVERLESSAPPLICATIONREPOSITORY_API
#define AWS_SERVERLESSAPPLICATIONREPOSITORY_API
Definition: ServerlessApplicationRepository_EXPORTS.h:28