AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 CodeBuild
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEBUILD_API EnvironmentImage() = default;
37 AWS_CODEBUILD_API EnvironmentImage(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 EnvironmentImage& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 EnvironmentImage& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetVersions() const { return m_versions; }
71 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
72 template<typename VersionsT = Aws::Vector<Aws::String>>
73 void SetVersions(VersionsT&& value) { m_versionsHasBeenSet = true; m_versions = std::forward<VersionsT>(value); }
74 template<typename VersionsT = Aws::Vector<Aws::String>>
75 EnvironmentImage& WithVersions(VersionsT&& value) { SetVersions(std::forward<VersionsT>(value)); return *this;}
76 template<typename VersionsT = Aws::String>
77 EnvironmentImage& AddVersions(VersionsT&& value) { m_versionsHasBeenSet = true; m_versions.emplace_back(std::forward<VersionsT>(value)); return *this; }
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_description;
85 bool m_descriptionHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_versions;
88 bool m_versionsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CodeBuild
93} // 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