AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
EnvironmentImage.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
30 public:
31 AWS_CODEBUILD_API EnvironmentImage() = default;
32 AWS_CODEBUILD_API EnvironmentImage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 EnvironmentImage& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 EnvironmentImage& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetVersions() const { return m_versions; }
77 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
78 template <typename VersionsT = Aws::Vector<Aws::String>>
79 void SetVersions(VersionsT&& value) {
80 m_versionsHasBeenSet = true;
81 m_versions = std::forward<VersionsT>(value);
82 }
83 template <typename VersionsT = Aws::Vector<Aws::String>>
84 EnvironmentImage& WithVersions(VersionsT&& value) {
85 SetVersions(std::forward<VersionsT>(value));
86 return *this;
87 }
88 template <typename VersionsT = Aws::String>
89 EnvironmentImage& AddVersions(VersionsT&& value) {
90 m_versionsHasBeenSet = true;
91 m_versions.emplace_back(std::forward<VersionsT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
98 Aws::String m_description;
99
100 Aws::Vector<Aws::String> m_versions;
101 bool m_nameHasBeenSet = false;
102 bool m_descriptionHasBeenSet = false;
103 bool m_versionsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CodeBuild
108} // namespace Aws
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
EnvironmentImage & WithVersions(VersionsT &&value)
EnvironmentImage & AddVersions(VersionsT &&value)
const Aws::String & GetDescription() const
AWS_CODEBUILD_API EnvironmentImage & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentImage & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetVersions() const
AWS_CODEBUILD_API EnvironmentImage()=default
EnvironmentImage & WithName(NameT &&value)
AWS_CODEBUILD_API EnvironmentImage(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue