AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnvironmentPlatform.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/PlatformType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codebuild/model/EnvironmentLanguage.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 EnvironmentPlatform();
38 AWS_CODEBUILD_API EnvironmentPlatform(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const PlatformType& GetPlatform() const{ return m_platform; }
48 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
49 inline void SetPlatform(const PlatformType& value) { m_platformHasBeenSet = true; m_platform = value; }
50 inline void SetPlatform(PlatformType&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
51 inline EnvironmentPlatform& WithPlatform(const PlatformType& value) { SetPlatform(value); return *this;}
52 inline EnvironmentPlatform& WithPlatform(PlatformType&& value) { SetPlatform(std::move(value)); return *this;}
54
56
60 inline const Aws::Vector<EnvironmentLanguage>& GetLanguages() const{ return m_languages; }
61 inline bool LanguagesHasBeenSet() const { return m_languagesHasBeenSet; }
62 inline void SetLanguages(const Aws::Vector<EnvironmentLanguage>& value) { m_languagesHasBeenSet = true; m_languages = value; }
63 inline void SetLanguages(Aws::Vector<EnvironmentLanguage>&& value) { m_languagesHasBeenSet = true; m_languages = std::move(value); }
65 inline EnvironmentPlatform& WithLanguages(Aws::Vector<EnvironmentLanguage>&& value) { SetLanguages(std::move(value)); return *this;}
66 inline EnvironmentPlatform& AddLanguages(const EnvironmentLanguage& value) { m_languagesHasBeenSet = true; m_languages.push_back(value); return *this; }
67 inline EnvironmentPlatform& AddLanguages(EnvironmentLanguage&& value) { m_languagesHasBeenSet = true; m_languages.push_back(std::move(value)); return *this; }
69 private:
70
71 PlatformType m_platform;
72 bool m_platformHasBeenSet = false;
73
75 bool m_languagesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodeBuild
80} // namespace Aws
AWS_CODEBUILD_API EnvironmentPlatform(Aws::Utils::Json::JsonView jsonValue)
EnvironmentPlatform & WithLanguages(const Aws::Vector< EnvironmentLanguage > &value)
AWS_CODEBUILD_API EnvironmentPlatform & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EnvironmentLanguage > & GetLanguages() const
void SetLanguages(Aws::Vector< EnvironmentLanguage > &&value)
EnvironmentPlatform & WithPlatform(const PlatformType &value)
EnvironmentPlatform & WithPlatform(PlatformType &&value)
EnvironmentPlatform & AddLanguages(const EnvironmentLanguage &value)
EnvironmentPlatform & WithLanguages(Aws::Vector< EnvironmentLanguage > &&value)
EnvironmentPlatform & AddLanguages(EnvironmentLanguage &&value)
void SetLanguages(const Aws::Vector< EnvironmentLanguage > &value)
void SetPlatform(const PlatformType &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue