AWS SDK for C++

AWS SDK for C++ Version 1.11.836

Loading...
Searching...
No Matches
FunctionCodeLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9#include <aws/lambda/model/FunctionCodeLocationError.h>
10#include <aws/lambda/model/ResolvedS3Object.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lambda {
22namespace Model {
23
30 public:
31 AWS_LAMBDA_API FunctionCodeLocation() = default;
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRepositoryType() const { return m_repositoryType; }
41 inline bool RepositoryTypeHasBeenSet() const { return m_repositoryTypeHasBeenSet; }
42 template <typename RepositoryTypeT = Aws::String>
43 void SetRepositoryType(RepositoryTypeT&& value) {
44 m_repositoryTypeHasBeenSet = true;
45 m_repositoryType = std::forward<RepositoryTypeT>(value);
46 }
47 template <typename RepositoryTypeT = Aws::String>
48 FunctionCodeLocation& WithRepositoryType(RepositoryTypeT&& value) {
49 SetRepositoryType(std::forward<RepositoryTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLocation() const { return m_location; }
59 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
60 template <typename LocationT = Aws::String>
61 void SetLocation(LocationT&& value) {
62 m_locationHasBeenSet = true;
63 m_location = std::forward<LocationT>(value);
64 }
65 template <typename LocationT = Aws::String>
66 FunctionCodeLocation& WithLocation(LocationT&& value) {
67 SetLocation(std::forward<LocationT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetImageUri() const { return m_imageUri; }
77 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
78 template <typename ImageUriT = Aws::String>
79 void SetImageUri(ImageUriT&& value) {
80 m_imageUriHasBeenSet = true;
81 m_imageUri = std::forward<ImageUriT>(value);
82 }
83 template <typename ImageUriT = Aws::String>
84 FunctionCodeLocation& WithImageUri(ImageUriT&& value) {
85 SetImageUri(std::forward<ImageUriT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetResolvedImageUri() const { return m_resolvedImageUri; }
95 inline bool ResolvedImageUriHasBeenSet() const { return m_resolvedImageUriHasBeenSet; }
96 template <typename ResolvedImageUriT = Aws::String>
97 void SetResolvedImageUri(ResolvedImageUriT&& value) {
98 m_resolvedImageUriHasBeenSet = true;
99 m_resolvedImageUri = std::forward<ResolvedImageUriT>(value);
100 }
101 template <typename ResolvedImageUriT = Aws::String>
102 FunctionCodeLocation& WithResolvedImageUri(ResolvedImageUriT&& value) {
103 SetResolvedImageUri(std::forward<ResolvedImageUriT>(value));
104 return *this;
105 }
107
109
112 inline const ResolvedS3Object& GetResolvedS3Object() const { return m_resolvedS3Object; }
113 inline bool ResolvedS3ObjectHasBeenSet() const { return m_resolvedS3ObjectHasBeenSet; }
114 template <typename ResolvedS3ObjectT = ResolvedS3Object>
115 void SetResolvedS3Object(ResolvedS3ObjectT&& value) {
116 m_resolvedS3ObjectHasBeenSet = true;
117 m_resolvedS3Object = std::forward<ResolvedS3ObjectT>(value);
118 }
119 template <typename ResolvedS3ObjectT = ResolvedS3Object>
120 FunctionCodeLocation& WithResolvedS3Object(ResolvedS3ObjectT&& value) {
121 SetResolvedS3Object(std::forward<ResolvedS3ObjectT>(value));
122 return *this;
123 }
125
127
134 inline const Aws::String& GetSourceKMSKeyArn() const { return m_sourceKMSKeyArn; }
135 inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
136 template <typename SourceKMSKeyArnT = Aws::String>
137 void SetSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
138 m_sourceKMSKeyArnHasBeenSet = true;
139 m_sourceKMSKeyArn = std::forward<SourceKMSKeyArnT>(value);
140 }
141 template <typename SourceKMSKeyArnT = Aws::String>
142 FunctionCodeLocation& WithSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
143 SetSourceKMSKeyArn(std::forward<SourceKMSKeyArnT>(value));
144 return *this;
145 }
147
149
153 inline const FunctionCodeLocationError& GetError() const { return m_error; }
154 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
155 template <typename ErrorT = FunctionCodeLocationError>
156 void SetError(ErrorT&& value) {
157 m_errorHasBeenSet = true;
158 m_error = std::forward<ErrorT>(value);
159 }
160 template <typename ErrorT = FunctionCodeLocationError>
162 SetError(std::forward<ErrorT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_repositoryType;
168
169 Aws::String m_location;
170
171 Aws::String m_imageUri;
172
173 Aws::String m_resolvedImageUri;
174
175 ResolvedS3Object m_resolvedS3Object;
176
177 Aws::String m_sourceKMSKeyArn;
178
180 bool m_repositoryTypeHasBeenSet = false;
181 bool m_locationHasBeenSet = false;
182 bool m_imageUriHasBeenSet = false;
183 bool m_resolvedImageUriHasBeenSet = false;
184 bool m_resolvedS3ObjectHasBeenSet = false;
185 bool m_sourceKMSKeyArnHasBeenSet = false;
186 bool m_errorHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Lambda
191} // namespace Aws
AWS_LAMBDA_API FunctionCodeLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API FunctionCodeLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
const ResolvedS3Object & GetResolvedS3Object() const
void SetRepositoryType(RepositoryTypeT &&value)
void SetSourceKMSKeyArn(SourceKMSKeyArnT &&value)
FunctionCodeLocation & WithResolvedImageUri(ResolvedImageUriT &&value)
void SetResolvedImageUri(ResolvedImageUriT &&value)
FunctionCodeLocation & WithImageUri(ImageUriT &&value)
FunctionCodeLocation & WithRepositoryType(RepositoryTypeT &&value)
void SetResolvedS3Object(ResolvedS3ObjectT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
const FunctionCodeLocationError & GetError() const
const Aws::String & GetResolvedImageUri() const
AWS_LAMBDA_API FunctionCodeLocation()=default
FunctionCodeLocation & WithSourceKMSKeyArn(SourceKMSKeyArnT &&value)
FunctionCodeLocation & WithResolvedS3Object(ResolvedS3ObjectT &&value)
FunctionCodeLocation & WithError(ErrorT &&value)
const Aws::String & GetRepositoryType() const
FunctionCodeLocation & WithLocation(LocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue