AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LayersListItem.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/model/LayerVersionsListItem.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_LAMBDA_API LayersListItem() = default;
38 AWS_LAMBDA_API LayersListItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetLayerName() const { return m_layerName; }
48 inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
49 template<typename LayerNameT = Aws::String>
50 void SetLayerName(LayerNameT&& value) { m_layerNameHasBeenSet = true; m_layerName = std::forward<LayerNameT>(value); }
51 template<typename LayerNameT = Aws::String>
52 LayersListItem& WithLayerName(LayerNameT&& value) { SetLayerName(std::forward<LayerNameT>(value)); return *this;}
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) { m_layerArnHasBeenSet = true; m_layerArn = std::forward<LayerArnT>(value); }
63 template<typename LayerArnT = Aws::String>
64 LayersListItem& WithLayerArn(LayerArnT&& value) { SetLayerArn(std::forward<LayerArnT>(value)); return *this;}
66
68
71 inline const LayerVersionsListItem& GetLatestMatchingVersion() const { return m_latestMatchingVersion; }
72 inline bool LatestMatchingVersionHasBeenSet() const { return m_latestMatchingVersionHasBeenSet; }
73 template<typename LatestMatchingVersionT = LayerVersionsListItem>
74 void SetLatestMatchingVersion(LatestMatchingVersionT&& value) { m_latestMatchingVersionHasBeenSet = true; m_latestMatchingVersion = std::forward<LatestMatchingVersionT>(value); }
75 template<typename LatestMatchingVersionT = LayerVersionsListItem>
76 LayersListItem& WithLatestMatchingVersion(LatestMatchingVersionT&& value) { SetLatestMatchingVersion(std::forward<LatestMatchingVersionT>(value)); return *this;}
78 private:
79
80 Aws::String m_layerName;
81 bool m_layerNameHasBeenSet = false;
82
83 Aws::String m_layerArn;
84 bool m_layerArnHasBeenSet = false;
85
86 LayerVersionsListItem m_latestMatchingVersion;
87 bool m_latestMatchingVersionHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Lambda
92} // 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