AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EcrConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 imagebuilder
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_IMAGEBUILDER_API EcrConfiguration() = default;
38 AWS_IMAGEBUILDER_API EcrConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IMAGEBUILDER_API EcrConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
53 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
54 template<typename RepositoryNameT = Aws::String>
55 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
56 template<typename RepositoryNameT = Aws::String>
57 EcrConfiguration& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
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) { m_containerTagsHasBeenSet = true; m_containerTags = std::forward<ContainerTagsT>(value); }
69 template<typename ContainerTagsT = Aws::Vector<Aws::String>>
70 EcrConfiguration& WithContainerTags(ContainerTagsT&& value) { SetContainerTags(std::forward<ContainerTagsT>(value)); return *this;}
71 template<typename ContainerTagsT = Aws::String>
72 EcrConfiguration& AddContainerTags(ContainerTagsT&& value) { m_containerTagsHasBeenSet = true; m_containerTags.emplace_back(std::forward<ContainerTagsT>(value)); return *this; }
74 private:
75
76 Aws::String m_repositoryName;
77 bool m_repositoryNameHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_containerTags;
80 bool m_containerTagsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace imagebuilder
85} // 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