AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GetComponentVersionArtifactRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrassv2/GreengrassV2Request.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/IotEndpointType.h>
11#include <aws/greengrassv2/model/S3EndpointType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace GreengrassV2 {
20namespace Model {
21
25 public:
26 AWS_GREENGRASSV2_API GetComponentVersionArtifactRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetComponentVersionArtifact"; }
33
34 AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;
35
36 AWS_GREENGRASSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
38 AWS_GREENGRASSV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template <typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) {
51 m_arnHasBeenSet = true;
52 m_arn = std::forward<ArnT>(value);
53 }
54 template <typename ArnT = Aws::String>
56 SetArn(std::forward<ArnT>(value));
57 return *this;
58 }
60
62
70 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
71 inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
72 template <typename ArtifactNameT = Aws::String>
73 void SetArtifactName(ArtifactNameT&& value) {
74 m_artifactNameHasBeenSet = true;
75 m_artifactName = std::forward<ArtifactNameT>(value);
76 }
77 template <typename ArtifactNameT = Aws::String>
79 SetArtifactName(std::forward<ArtifactNameT>(value));
80 return *this;
81 }
83
85
92 inline S3EndpointType GetS3EndpointType() const { return m_s3EndpointType; }
93 inline bool S3EndpointTypeHasBeenSet() const { return m_s3EndpointTypeHasBeenSet; }
94 inline void SetS3EndpointType(S3EndpointType value) {
95 m_s3EndpointTypeHasBeenSet = true;
96 m_s3EndpointType = value;
97 }
99 SetS3EndpointType(value);
100 return *this;
101 }
103
105
111 inline IotEndpointType GetIotEndpointType() const { return m_iotEndpointType; }
112 inline bool IotEndpointTypeHasBeenSet() const { return m_iotEndpointTypeHasBeenSet; }
114 m_iotEndpointTypeHasBeenSet = true;
115 m_iotEndpointType = value;
116 }
118 SetIotEndpointType(value);
119 return *this;
120 }
122 private:
123 Aws::String m_arn;
124 bool m_arnHasBeenSet = false;
125
126 Aws::String m_artifactName;
127 bool m_artifactNameHasBeenSet = false;
128
129 S3EndpointType m_s3EndpointType{S3EndpointType::NOT_SET};
130 bool m_s3EndpointTypeHasBeenSet = false;
131
132 IotEndpointType m_iotEndpointType{IotEndpointType::NOT_SET};
133 bool m_iotEndpointTypeHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace GreengrassV2
138} // namespace Aws
AWS_GREENGRASSV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_GREENGRASSV2_API GetComponentVersionArtifactRequest()=default
GetComponentVersionArtifactRequest & WithIotEndpointType(IotEndpointType value)
GetComponentVersionArtifactRequest & WithArtifactName(ArtifactNameT &&value)
AWS_GREENGRASSV2_API Aws::String SerializePayload() const override
GetComponentVersionArtifactRequest & WithS3EndpointType(S3EndpointType value)
AWS_GREENGRASSV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String