AWS SDK for C++  1.9.104
AWS SDK for C++
GetLayerVersionPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lambda
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "GetLayerVersionPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetLayerName() const{ return m_layerName; }
39 
43  inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
44 
48  inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
49 
53  inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
54 
58  inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
59 
63  inline GetLayerVersionPolicyRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
64 
68  inline GetLayerVersionPolicyRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
69 
73  inline GetLayerVersionPolicyRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
74 
75 
79  inline long long GetVersionNumber() const{ return m_versionNumber; }
80 
84  inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
85 
89  inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
90 
94  inline GetLayerVersionPolicyRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
95 
96  private:
97 
98  Aws::String m_layerName;
99  bool m_layerNameHasBeenSet;
100 
101  long long m_versionNumber;
102  bool m_versionNumberHasBeenSet;
103  };
104 
105 } // namespace Model
106 } // namespace Lambda
107 } // namespace Aws
Aws::Lambda::Model::GetLayerVersionPolicyRequest::SetLayerName
void SetLayerName(const char *value)
Definition: GetLayerVersionPolicyRequest.h:58
Aws::Lambda::Model::GetLayerVersionPolicyRequest::WithLayerName
GetLayerVersionPolicyRequest & WithLayerName(const char *value)
Definition: GetLayerVersionPolicyRequest.h:73
Aws::Lambda::Model::GetLayerVersionPolicyRequest::SetVersionNumber
void SetVersionNumber(long long value)
Definition: GetLayerVersionPolicyRequest.h:89
Aws::Lambda::Model::GetLayerVersionPolicyRequest::GetLayerVersionPolicyRequest
GetLayerVersionPolicyRequest()
Aws::Lambda::Model::GetLayerVersionPolicyRequest::WithVersionNumber
GetLayerVersionPolicyRequest & WithVersionNumber(long long value)
Definition: GetLayerVersionPolicyRequest.h:94
Aws::Lambda::Model::GetLayerVersionPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::GetLayerVersionPolicyRequest::VersionNumberHasBeenSet
bool VersionNumberHasBeenSet() const
Definition: GetLayerVersionPolicyRequest.h:84
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::GetLayerVersionPolicyRequest::LayerNameHasBeenSet
bool LayerNameHasBeenSet() const
Definition: GetLayerVersionPolicyRequest.h:43
Aws::Lambda::Model::GetLayerVersionPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetLayerVersionPolicyRequest.h:30
Aws::Lambda::Model::GetLayerVersionPolicyRequest::GetVersionNumber
long long GetVersionNumber() const
Definition: GetLayerVersionPolicyRequest.h:79
Aws::Lambda::Model::GetLayerVersionPolicyRequest::SetLayerName
void SetLayerName(Aws::String &&value)
Definition: GetLayerVersionPolicyRequest.h:53
Aws::Lambda::Model::GetLayerVersionPolicyRequest::GetLayerName
const Aws::String & GetLayerName() const
Definition: GetLayerVersionPolicyRequest.h:38
Aws::Lambda::Model::GetLayerVersionPolicyRequest::WithLayerName
GetLayerVersionPolicyRequest & WithLayerName(Aws::String &&value)
Definition: GetLayerVersionPolicyRequest.h:68
AWSString.h
LambdaRequest.h
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::GetLayerVersionPolicyRequest::WithLayerName
GetLayerVersionPolicyRequest & WithLayerName(const Aws::String &value)
Definition: GetLayerVersionPolicyRequest.h:63
Aws::Lambda::Model::GetLayerVersionPolicyRequest
Definition: GetLayerVersionPolicyRequest.h:22
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::GetLayerVersionPolicyRequest::SetLayerName
void SetLayerName(const Aws::String &value)
Definition: GetLayerVersionPolicyRequest.h:48
Lambda_EXPORTS.h