AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline EnvironmentImage& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline EnvironmentImage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline EnvironmentImage& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline EnvironmentImage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline EnvironmentImage& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline EnvironmentImage& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
75 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
76 inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
77 inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
78 inline EnvironmentImage& WithVersions(const Aws::Vector<Aws::String>& value) { SetVersions(value); return *this;}
79 inline EnvironmentImage& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
80 inline EnvironmentImage& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
81 inline EnvironmentImage& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
82 inline EnvironmentImage& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
84 private:
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 Aws::String m_description;
90 bool m_descriptionHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_versions;
93 bool m_versionsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CodeBuild
98} // namespace Aws
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
EnvironmentImage & WithDescription(const Aws::String &value)
EnvironmentImage & AddVersions(Aws::String &&value)
EnvironmentImage & WithVersions(const Aws::Vector< Aws::String > &value)
void SetVersions(const Aws::Vector< Aws::String > &value)
EnvironmentImage & AddVersions(const char *value)
void SetDescription(Aws::String &&value)
EnvironmentImage & AddVersions(const Aws::String &value)
EnvironmentImage & WithName(const Aws::String &value)
const Aws::String & GetDescription() const
void SetName(const Aws::String &value)
AWS_CODEBUILD_API EnvironmentImage & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetVersions() const
EnvironmentImage & WithName(const char *value)
EnvironmentImage & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
EnvironmentImage & WithDescription(const char *value)
void SetVersions(Aws::Vector< Aws::String > &&value)
AWS_CODEBUILD_API EnvironmentImage(Aws::Utils::Json::JsonView jsonValue)
EnvironmentImage & WithName(Aws::String &&value)
EnvironmentImage & WithVersions(Aws::Vector< Aws::String > &&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