AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EnvironmentPlatform.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/EnvironmentLanguage.h>
9#include <aws/codebuild/model/PlatformType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeBuild {
22namespace Model {
23
31 public:
32 AWS_CODEBUILD_API EnvironmentPlatform() = default;
33 AWS_CODEBUILD_API EnvironmentPlatform(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline PlatformType GetPlatform() const { return m_platform; }
42 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
43 inline void SetPlatform(PlatformType value) {
44 m_platformHasBeenSet = true;
45 m_platform = value;
46 }
48 SetPlatform(value);
49 return *this;
50 }
52
54
58 inline const Aws::Vector<EnvironmentLanguage>& GetLanguages() const { return m_languages; }
59 inline bool LanguagesHasBeenSet() const { return m_languagesHasBeenSet; }
60 template <typename LanguagesT = Aws::Vector<EnvironmentLanguage>>
61 void SetLanguages(LanguagesT&& value) {
62 m_languagesHasBeenSet = true;
63 m_languages = std::forward<LanguagesT>(value);
64 }
65 template <typename LanguagesT = Aws::Vector<EnvironmentLanguage>>
66 EnvironmentPlatform& WithLanguages(LanguagesT&& value) {
67 SetLanguages(std::forward<LanguagesT>(value));
68 return *this;
69 }
70 template <typename LanguagesT = EnvironmentLanguage>
71 EnvironmentPlatform& AddLanguages(LanguagesT&& value) {
72 m_languagesHasBeenSet = true;
73 m_languages.emplace_back(std::forward<LanguagesT>(value));
74 return *this;
75 }
77 private:
79
81 bool m_platformHasBeenSet = false;
82 bool m_languagesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CodeBuild
87} // namespace Aws
EnvironmentPlatform & WithPlatform(PlatformType value)
AWS_CODEBUILD_API EnvironmentPlatform(Aws::Utils::Json::JsonView jsonValue)
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
EnvironmentPlatform & AddLanguages(LanguagesT &&value)
AWS_CODEBUILD_API EnvironmentPlatform()=default
EnvironmentPlatform & WithLanguages(LanguagesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue