AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LayersListItem.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/LayerVersionsListItem.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
31 public:
32 AWS_LAMBDA_API LayersListItem() = default;
33 AWS_LAMBDA_API LayersListItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetLayerName() const { return m_layerName; }
42 inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
43 template <typename LayerNameT = Aws::String>
44 void SetLayerName(LayerNameT&& value) {
45 m_layerNameHasBeenSet = true;
46 m_layerName = std::forward<LayerNameT>(value);
47 }
48 template <typename LayerNameT = Aws::String>
49 LayersListItem& WithLayerName(LayerNameT&& value) {
50 SetLayerName(std::forward<LayerNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLayerArn() const { return m_layerArn; }
60 inline bool LayerArnHasBeenSet() const { return m_layerArnHasBeenSet; }
61 template <typename LayerArnT = Aws::String>
62 void SetLayerArn(LayerArnT&& value) {
63 m_layerArnHasBeenSet = true;
64 m_layerArn = std::forward<LayerArnT>(value);
65 }
66 template <typename LayerArnT = Aws::String>
67 LayersListItem& WithLayerArn(LayerArnT&& value) {
68 SetLayerArn(std::forward<LayerArnT>(value));
69 return *this;
70 }
72
74
77 inline const LayerVersionsListItem& GetLatestMatchingVersion() const { return m_latestMatchingVersion; }
78 inline bool LatestMatchingVersionHasBeenSet() const { return m_latestMatchingVersionHasBeenSet; }
79 template <typename LatestMatchingVersionT = LayerVersionsListItem>
80 void SetLatestMatchingVersion(LatestMatchingVersionT&& value) {
81 m_latestMatchingVersionHasBeenSet = true;
82 m_latestMatchingVersion = std::forward<LatestMatchingVersionT>(value);
83 }
84 template <typename LatestMatchingVersionT = LayerVersionsListItem>
85 LayersListItem& WithLatestMatchingVersion(LatestMatchingVersionT&& value) {
86 SetLatestMatchingVersion(std::forward<LatestMatchingVersionT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_layerName;
92
93 Aws::String m_layerArn;
94
95 LayerVersionsListItem m_latestMatchingVersion;
96 bool m_layerNameHasBeenSet = false;
97 bool m_layerArnHasBeenSet = false;
98 bool m_latestMatchingVersionHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Lambda
103} // namespace Aws
LayersListItem & WithLatestMatchingVersion(LatestMatchingVersionT &&value)
const Aws::String & GetLayerName() const
AWS_LAMBDA_API LayersListItem(Aws::Utils::Json::JsonView jsonValue)
LayersListItem & WithLayerArn(LayerArnT &&value)
AWS_LAMBDA_API LayersListItem()=default
AWS_LAMBDA_API LayersListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const LayerVersionsListItem & GetLatestMatchingVersion() const
const Aws::String & GetLayerArn() const
void SetLatestMatchingVersion(LatestMatchingVersionT &&value)
void SetLayerArn(LayerArnT &&value)
void SetLayerName(LayerNameT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
LayersListItem & WithLayerName(LayerNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue