AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnvironmentLanguage.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/LanguageType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codebuild/model/EnvironmentImage.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 CodeBuild
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEBUILD_API EnvironmentLanguage();
38 AWS_CODEBUILD_API EnvironmentLanguage(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const LanguageType& GetLanguage() const{ return m_language; }
48 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
49 inline void SetLanguage(const LanguageType& value) { m_languageHasBeenSet = true; m_language = value; }
50 inline void SetLanguage(LanguageType&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
51 inline EnvironmentLanguage& WithLanguage(const LanguageType& value) { SetLanguage(value); return *this;}
52 inline EnvironmentLanguage& WithLanguage(LanguageType&& value) { SetLanguage(std::move(value)); return *this;}
54
56
60 inline const Aws::Vector<EnvironmentImage>& GetImages() const{ return m_images; }
61 inline bool ImagesHasBeenSet() const { return m_imagesHasBeenSet; }
62 inline void SetImages(const Aws::Vector<EnvironmentImage>& value) { m_imagesHasBeenSet = true; m_images = value; }
63 inline void SetImages(Aws::Vector<EnvironmentImage>&& value) { m_imagesHasBeenSet = true; m_images = std::move(value); }
64 inline EnvironmentLanguage& WithImages(const Aws::Vector<EnvironmentImage>& value) { SetImages(value); return *this;}
65 inline EnvironmentLanguage& WithImages(Aws::Vector<EnvironmentImage>&& value) { SetImages(std::move(value)); return *this;}
66 inline EnvironmentLanguage& AddImages(const EnvironmentImage& value) { m_imagesHasBeenSet = true; m_images.push_back(value); return *this; }
67 inline EnvironmentLanguage& AddImages(EnvironmentImage&& value) { m_imagesHasBeenSet = true; m_images.push_back(std::move(value)); return *this; }
69 private:
70
71 LanguageType m_language;
72 bool m_languageHasBeenSet = false;
73
75 bool m_imagesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodeBuild
80} // namespace Aws
AWS_CODEBUILD_API EnvironmentLanguage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImages(Aws::Vector< EnvironmentImage > &&value)
EnvironmentLanguage & WithImages(const Aws::Vector< EnvironmentImage > &value)
const Aws::Vector< EnvironmentImage > & GetImages() const
AWS_CODEBUILD_API EnvironmentLanguage(Aws::Utils::Json::JsonView jsonValue)
EnvironmentLanguage & WithLanguage(LanguageType &&value)
EnvironmentLanguage & WithLanguage(const LanguageType &value)
EnvironmentLanguage & WithImages(Aws::Vector< EnvironmentImage > &&value)
EnvironmentLanguage & AddImages(const EnvironmentImage &value)
void SetLanguage(const LanguageType &value)
EnvironmentLanguage & AddImages(EnvironmentImage &&value)
void SetImages(const Aws::Vector< EnvironmentImage > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue