AWS SDK for C++  1.9.123
AWS SDK for C++
GetComponentVersionArtifactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GreengrassV2
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 "GetComponentVersionArtifact"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
40  inline const Aws::String& GetArn() const{ return m_arn; }
41 
47  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 
54  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 
61  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
62 
68  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 
75  inline GetComponentVersionArtifactRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
76 
82  inline GetComponentVersionArtifactRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
83 
89  inline GetComponentVersionArtifactRequest& WithArn(const char* value) { SetArn(value); return *this;}
90 
91 
100  inline const Aws::String& GetArtifactName() const{ return m_artifactName; }
101 
110  inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
111 
120  inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; }
121 
130  inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); }
131 
140  inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); }
141 
150  inline GetComponentVersionArtifactRequest& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;}
151 
160  inline GetComponentVersionArtifactRequest& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;}
161 
170  inline GetComponentVersionArtifactRequest& WithArtifactName(const char* value) { SetArtifactName(value); return *this;}
171 
172  private:
173 
174  Aws::String m_arn;
175  bool m_arnHasBeenSet;
176 
177  Aws::String m_artifactName;
178  bool m_artifactNameHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace GreengrassV2
183 } // namespace Aws
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::SetArtifactName
void SetArtifactName(const char *value)
Definition: GetComponentVersionArtifactRequest.h:140
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::WithArn
GetComponentVersionArtifactRequest & WithArn(const char *value)
Definition: GetComponentVersionArtifactRequest.h:89
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::WithArtifactName
GetComponentVersionArtifactRequest & WithArtifactName(const Aws::String &value)
Definition: GetComponentVersionArtifactRequest.h:150
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::WithArtifactName
GetComponentVersionArtifactRequest & WithArtifactName(const char *value)
Definition: GetComponentVersionArtifactRequest.h:170
GreengrassV2Request.h
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetComponentVersionArtifactRequest.h:30
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::SetArtifactName
void SetArtifactName(const Aws::String &value)
Definition: GetComponentVersionArtifactRequest.h:120
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::SetArn
void SetArn(const char *value)
Definition: GetComponentVersionArtifactRequest.h:68
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::ArtifactNameHasBeenSet
bool ArtifactNameHasBeenSet() const
Definition: GetComponentVersionArtifactRequest.h:110
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::GetArn
const Aws::String & GetArn() const
Definition: GetComponentVersionArtifactRequest.h:40
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: GetComponentVersionArtifactRequest.h:47
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
AWSString.h
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::SetArn
void SetArn(const Aws::String &value)
Definition: GetComponentVersionArtifactRequest.h:54
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::GetComponentVersionArtifactRequest
GetComponentVersionArtifactRequest()
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::WithArtifactName
GetComponentVersionArtifactRequest & WithArtifactName(Aws::String &&value)
Definition: GetComponentVersionArtifactRequest.h:160
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::SetArn
void SetArn(Aws::String &&value)
Definition: GetComponentVersionArtifactRequest.h:61
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::GetArtifactName
const Aws::String & GetArtifactName() const
Definition: GetComponentVersionArtifactRequest.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest
Definition: GetComponentVersionArtifactRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::WithArn
GetComponentVersionArtifactRequest & WithArn(Aws::String &&value)
Definition: GetComponentVersionArtifactRequest.h:82
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::WithArn
GetComponentVersionArtifactRequest & WithArn(const Aws::String &value)
Definition: GetComponentVersionArtifactRequest.h:75
Aws::GreengrassV2::Model::GetComponentVersionArtifactRequest::SetArtifactName
void SetArtifactName(Aws::String &&value)
Definition: GetComponentVersionArtifactRequest.h:130