AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchRestrictions.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
29 public:
30 AWS_CODEBUILD_API BatchRestrictions() = default;
31 AWS_CODEBUILD_API BatchRestrictions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetMaximumBuildsAllowed() const { return m_maximumBuildsAllowed; }
40 inline bool MaximumBuildsAllowedHasBeenSet() const { return m_maximumBuildsAllowedHasBeenSet; }
41 inline void SetMaximumBuildsAllowed(int value) {
42 m_maximumBuildsAllowedHasBeenSet = true;
43 m_maximumBuildsAllowed = value;
44 }
47 return *this;
48 }
50
52
59 inline const Aws::Vector<Aws::String>& GetComputeTypesAllowed() const { return m_computeTypesAllowed; }
60 inline bool ComputeTypesAllowedHasBeenSet() const { return m_computeTypesAllowedHasBeenSet; }
61 template <typename ComputeTypesAllowedT = Aws::Vector<Aws::String>>
62 void SetComputeTypesAllowed(ComputeTypesAllowedT&& value) {
63 m_computeTypesAllowedHasBeenSet = true;
64 m_computeTypesAllowed = std::forward<ComputeTypesAllowedT>(value);
65 }
66 template <typename ComputeTypesAllowedT = Aws::Vector<Aws::String>>
67 BatchRestrictions& WithComputeTypesAllowed(ComputeTypesAllowedT&& value) {
68 SetComputeTypesAllowed(std::forward<ComputeTypesAllowedT>(value));
69 return *this;
70 }
71 template <typename ComputeTypesAllowedT = Aws::String>
72 BatchRestrictions& AddComputeTypesAllowed(ComputeTypesAllowedT&& value) {
73 m_computeTypesAllowedHasBeenSet = true;
74 m_computeTypesAllowed.emplace_back(std::forward<ComputeTypesAllowedT>(value));
75 return *this;
76 }
78
80
87 inline const Aws::Vector<Aws::String>& GetFleetsAllowed() const { return m_fleetsAllowed; }
88 inline bool FleetsAllowedHasBeenSet() const { return m_fleetsAllowedHasBeenSet; }
89 template <typename FleetsAllowedT = Aws::Vector<Aws::String>>
90 void SetFleetsAllowed(FleetsAllowedT&& value) {
91 m_fleetsAllowedHasBeenSet = true;
92 m_fleetsAllowed = std::forward<FleetsAllowedT>(value);
93 }
94 template <typename FleetsAllowedT = Aws::Vector<Aws::String>>
95 BatchRestrictions& WithFleetsAllowed(FleetsAllowedT&& value) {
96 SetFleetsAllowed(std::forward<FleetsAllowedT>(value));
97 return *this;
98 }
99 template <typename FleetsAllowedT = Aws::String>
100 BatchRestrictions& AddFleetsAllowed(FleetsAllowedT&& value) {
101 m_fleetsAllowedHasBeenSet = true;
102 m_fleetsAllowed.emplace_back(std::forward<FleetsAllowedT>(value));
103 return *this;
104 }
106 private:
107 int m_maximumBuildsAllowed{0};
108
109 Aws::Vector<Aws::String> m_computeTypesAllowed;
110
111 Aws::Vector<Aws::String> m_fleetsAllowed;
112 bool m_maximumBuildsAllowedHasBeenSet = false;
113 bool m_computeTypesAllowedHasBeenSet = false;
114 bool m_fleetsAllowedHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CodeBuild
119} // namespace Aws
void SetComputeTypesAllowed(ComputeTypesAllowedT &&value)
AWS_CODEBUILD_API BatchRestrictions(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetComputeTypesAllowed() const
const Aws::Vector< Aws::String > & GetFleetsAllowed() const
AWS_CODEBUILD_API BatchRestrictions()=default
BatchRestrictions & WithFleetsAllowed(FleetsAllowedT &&value)
BatchRestrictions & AddComputeTypesAllowed(ComputeTypesAllowedT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
BatchRestrictions & AddFleetsAllowed(FleetsAllowedT &&value)
void SetFleetsAllowed(FleetsAllowedT &&value)
BatchRestrictions & WithComputeTypesAllowed(ComputeTypesAllowedT &&value)
BatchRestrictions & WithMaximumBuildsAllowed(int value)
AWS_CODEBUILD_API BatchRestrictions & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue