AWS SDK for C++  1.9.122
AWS SDK for C++
GetComponentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace GreengrassV2
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "GetComponent"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const RecipeOutputFormat& GetRecipeOutputFormat() const{ return m_recipeOutputFormat; }
46 
50  inline bool RecipeOutputFormatHasBeenSet() const { return m_recipeOutputFormatHasBeenSet; }
51 
55  inline void SetRecipeOutputFormat(const RecipeOutputFormat& value) { m_recipeOutputFormatHasBeenSet = true; m_recipeOutputFormat = value; }
56 
60  inline void SetRecipeOutputFormat(RecipeOutputFormat&& value) { m_recipeOutputFormatHasBeenSet = true; m_recipeOutputFormat = std::move(value); }
61 
65  inline GetComponentRequest& WithRecipeOutputFormat(const RecipeOutputFormat& value) { SetRecipeOutputFormat(value); return *this;}
66 
70  inline GetComponentRequest& WithRecipeOutputFormat(RecipeOutputFormat&& value) { SetRecipeOutputFormat(std::move(value)); return *this;}
71 
72 
78  inline const Aws::String& GetArn() const{ return m_arn; }
79 
85  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
86 
92  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
93 
99  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
100 
106  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
107 
113  inline GetComponentRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
114 
120  inline GetComponentRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
121 
127  inline GetComponentRequest& WithArn(const char* value) { SetArn(value); return *this;}
128 
129  private:
130 
131  RecipeOutputFormat m_recipeOutputFormat;
132  bool m_recipeOutputFormatHasBeenSet;
133 
134  Aws::String m_arn;
135  bool m_arnHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace GreengrassV2
140 } // namespace Aws
Aws::GreengrassV2::Model::GetComponentRequest::RecipeOutputFormatHasBeenSet
bool RecipeOutputFormatHasBeenSet() const
Definition: GetComponentRequest.h:50
Aws::GreengrassV2::Model::GetComponentRequest::GetComponentRequest
GetComponentRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::GreengrassV2::Model::GetComponentRequest::SetArn
void SetArn(Aws::String &&value)
Definition: GetComponentRequest.h:99
Aws::GreengrassV2::Model::GetComponentRequest::SetRecipeOutputFormat
void SetRecipeOutputFormat(RecipeOutputFormat &&value)
Definition: GetComponentRequest.h:60
GreengrassV2Request.h
Aws::GreengrassV2::Model::GetComponentRequest::WithArn
GetComponentRequest & WithArn(Aws::String &&value)
Definition: GetComponentRequest.h:120
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::GetComponentRequest
Definition: GetComponentRequest.h:27
RecipeOutputFormat.h
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::GetComponentRequest::GetRecipeOutputFormat
const RecipeOutputFormat & GetRecipeOutputFormat() const
Definition: GetComponentRequest.h:45
Aws::GreengrassV2::Model::GetComponentRequest::WithArn
GetComponentRequest & WithArn(const Aws::String &value)
Definition: GetComponentRequest.h:113
Aws::GreengrassV2::Model::GetComponentRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
AWSString.h
Aws::GreengrassV2::Model::GetComponentRequest::SetArn
void SetArn(const char *value)
Definition: GetComponentRequest.h:106
Aws::GreengrassV2::Model::GetComponentRequest::WithArn
GetComponentRequest & WithArn(const char *value)
Definition: GetComponentRequest.h:127
Aws::GreengrassV2::Model::GetComponentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::RecipeOutputFormat
RecipeOutputFormat
Definition: RecipeOutputFormat.h:17
Aws::GreengrassV2::Model::GetComponentRequest::WithRecipeOutputFormat
GetComponentRequest & WithRecipeOutputFormat(const RecipeOutputFormat &value)
Definition: GetComponentRequest.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::GetComponentRequest::WithRecipeOutputFormat
GetComponentRequest & WithRecipeOutputFormat(RecipeOutputFormat &&value)
Definition: GetComponentRequest.h:70
Aws::GreengrassV2::Model::GetComponentRequest::SetRecipeOutputFormat
void SetRecipeOutputFormat(const RecipeOutputFormat &value)
Definition: GetComponentRequest.h:55
Aws::GreengrassV2::Model::GetComponentRequest::GetArn
const Aws::String & GetArn() const
Definition: GetComponentRequest.h:78
Aws::GreengrassV2::Model::GetComponentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetComponentRequest.h:35
Aws::GreengrassV2::Model::GetComponentRequest::SetArn
void SetArn(const Aws::String &value)
Definition: GetComponentRequest.h:92
Aws::GreengrassV2::Model::GetComponentRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: GetComponentRequest.h:85