AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DistributionConfigurationSummary.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IMAGEBUILDER_API DistributionConfigurationSummary() = default;
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 DistributionConfigurationSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 DistributionConfigurationSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 DistributionConfigurationSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
84 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
85 template<typename DateCreatedT = Aws::String>
86 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
87 template<typename DateCreatedT = Aws::String>
88 DistributionConfigurationSummary& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
90
92
95 inline const Aws::String& GetDateUpdated() const { return m_dateUpdated; }
96 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
97 template<typename DateUpdatedT = Aws::String>
98 void SetDateUpdated(DateUpdatedT&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::forward<DateUpdatedT>(value); }
99 template<typename DateUpdatedT = Aws::String>
100 DistributionConfigurationSummary& WithDateUpdated(DateUpdatedT&& value) { SetDateUpdated(std::forward<DateUpdatedT>(value)); return *this;}
102
104
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 DistributionConfigurationSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 DistributionConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
116 }
118
120
123 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
124 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
125 template<typename RegionsT = Aws::Vector<Aws::String>>
126 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
127 template<typename RegionsT = Aws::Vector<Aws::String>>
128 DistributionConfigurationSummary& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
129 template<typename RegionsT = Aws::String>
130 DistributionConfigurationSummary& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
132 private:
133
134 Aws::String m_arn;
135 bool m_arnHasBeenSet = false;
136
137 Aws::String m_name;
138 bool m_nameHasBeenSet = false;
139
140 Aws::String m_description;
141 bool m_descriptionHasBeenSet = false;
142
143 Aws::String m_dateCreated;
144 bool m_dateCreatedHasBeenSet = false;
145
146 Aws::String m_dateUpdated;
147 bool m_dateUpdatedHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_regions;
153 bool m_regionsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace imagebuilder
158} // namespace Aws
DistributionConfigurationSummary & WithDateCreated(DateCreatedT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IMAGEBUILDER_API DistributionConfigurationSummary()=default
DistributionConfigurationSummary & WithDateUpdated(DateUpdatedT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API DistributionConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
DistributionConfigurationSummary & WithRegions(RegionsT &&value)
DistributionConfigurationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IMAGEBUILDER_API DistributionConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DistributionConfigurationSummary & AddRegions(RegionsT &&value)
DistributionConfigurationSummary & WithDescription(DescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue