AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EcrConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace imagebuilder {
21namespace Model {
22
31 public:
32 AWS_IMAGEBUILDER_API EcrConfiguration() = default;
33 AWS_IMAGEBUILDER_API EcrConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IMAGEBUILDER_API EcrConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
46 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
47 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
48 template <typename RepositoryNameT = Aws::String>
49 void SetRepositoryName(RepositoryNameT&& value) {
50 m_repositoryNameHasBeenSet = true;
51 m_repositoryName = std::forward<RepositoryNameT>(value);
52 }
53 template <typename RepositoryNameT = Aws::String>
54 EcrConfiguration& WithRepositoryName(RepositoryNameT&& value) {
55 SetRepositoryName(std::forward<RepositoryNameT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Aws::String>& GetContainerTags() const { return m_containerTags; }
66 inline bool ContainerTagsHasBeenSet() const { return m_containerTagsHasBeenSet; }
67 template <typename ContainerTagsT = Aws::Vector<Aws::String>>
68 void SetContainerTags(ContainerTagsT&& value) {
69 m_containerTagsHasBeenSet = true;
70 m_containerTags = std::forward<ContainerTagsT>(value);
71 }
72 template <typename ContainerTagsT = Aws::Vector<Aws::String>>
73 EcrConfiguration& WithContainerTags(ContainerTagsT&& value) {
74 SetContainerTags(std::forward<ContainerTagsT>(value));
75 return *this;
76 }
77 template <typename ContainerTagsT = Aws::String>
78 EcrConfiguration& AddContainerTags(ContainerTagsT&& value) {
79 m_containerTagsHasBeenSet = true;
80 m_containerTags.emplace_back(std::forward<ContainerTagsT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_repositoryName;
86
87 Aws::Vector<Aws::String> m_containerTags;
88 bool m_repositoryNameHasBeenSet = false;
89 bool m_containerTagsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace imagebuilder
94} // namespace Aws
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API EcrConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRepositoryName(RepositoryNameT &&value)
const Aws::Vector< Aws::String > & GetContainerTags() const
void SetContainerTags(ContainerTagsT &&value)
EcrConfiguration & WithContainerTags(ContainerTagsT &&value)
AWS_IMAGEBUILDER_API EcrConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRepositoryName() const
EcrConfiguration & AddContainerTags(ContainerTagsT &&value)
EcrConfiguration & WithRepositoryName(RepositoryNameT &&value)
AWS_IMAGEBUILDER_API EcrConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue