AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchRestrictions.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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
33 {
34 public:
35 AWS_CODEBUILD_API BatchRestrictions() = default;
36 AWS_CODEBUILD_API BatchRestrictions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetMaximumBuildsAllowed() const { return m_maximumBuildsAllowed; }
46 inline bool MaximumBuildsAllowedHasBeenSet() const { return m_maximumBuildsAllowedHasBeenSet; }
47 inline void SetMaximumBuildsAllowed(int value) { m_maximumBuildsAllowedHasBeenSet = true; m_maximumBuildsAllowed = value; }
48 inline BatchRestrictions& WithMaximumBuildsAllowed(int value) { SetMaximumBuildsAllowed(value); return *this;}
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) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed = std::forward<ComputeTypesAllowedT>(value); }
63 template<typename ComputeTypesAllowedT = Aws::Vector<Aws::String>>
64 BatchRestrictions& WithComputeTypesAllowed(ComputeTypesAllowedT&& value) { SetComputeTypesAllowed(std::forward<ComputeTypesAllowedT>(value)); return *this;}
65 template<typename ComputeTypesAllowedT = Aws::String>
66 BatchRestrictions& AddComputeTypesAllowed(ComputeTypesAllowedT&& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.emplace_back(std::forward<ComputeTypesAllowedT>(value)); return *this; }
68
70
77 inline const Aws::Vector<Aws::String>& GetFleetsAllowed() const { return m_fleetsAllowed; }
78 inline bool FleetsAllowedHasBeenSet() const { return m_fleetsAllowedHasBeenSet; }
79 template<typename FleetsAllowedT = Aws::Vector<Aws::String>>
80 void SetFleetsAllowed(FleetsAllowedT&& value) { m_fleetsAllowedHasBeenSet = true; m_fleetsAllowed = std::forward<FleetsAllowedT>(value); }
81 template<typename FleetsAllowedT = Aws::Vector<Aws::String>>
82 BatchRestrictions& WithFleetsAllowed(FleetsAllowedT&& value) { SetFleetsAllowed(std::forward<FleetsAllowedT>(value)); return *this;}
83 template<typename FleetsAllowedT = Aws::String>
84 BatchRestrictions& AddFleetsAllowed(FleetsAllowedT&& value) { m_fleetsAllowedHasBeenSet = true; m_fleetsAllowed.emplace_back(std::forward<FleetsAllowedT>(value)); return *this; }
86 private:
87
88 int m_maximumBuildsAllowed{0};
89 bool m_maximumBuildsAllowedHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_computeTypesAllowed;
92 bool m_computeTypesAllowedHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_fleetsAllowed;
95 bool m_fleetsAllowedHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CodeBuild
100} // 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