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>
47 inline void SetMaximumBuildsAllowed(
int value) { m_maximumBuildsAllowedHasBeenSet =
true; m_maximumBuildsAllowed = value; }
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>>
65 template<
typename ComputeTypesAllowedT = Aws::String>
66 BatchRestrictions&
AddComputeTypesAllowed(ComputeTypesAllowedT&& value) { m_computeTypesAllowedHasBeenSet =
true; m_computeTypesAllowed.emplace_back(std::forward<ComputeTypesAllowedT>(value));
return *
this; }
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>>
83 template<
typename FleetsAllowedT = Aws::String>
84 BatchRestrictions&
AddFleetsAllowed(FleetsAllowedT&& value) { m_fleetsAllowedHasBeenSet =
true; m_fleetsAllowed.emplace_back(std::forward<FleetsAllowedT>(value));
return *
this; }
88 int m_maximumBuildsAllowed{0};
89 bool m_maximumBuildsAllowedHasBeenSet =
false;
92 bool m_computeTypesAllowedHasBeenSet =
false;
95 bool m_fleetsAllowedHasBeenSet =
false;
void SetComputeTypesAllowed(ComputeTypesAllowedT &&value)
AWS_CODEBUILD_API BatchRestrictions(Aws::Utils::Json::JsonView jsonValue)
bool FleetsAllowedHasBeenSet() const
const Aws::Vector< Aws::String > & GetComputeTypesAllowed() const
const Aws::Vector< Aws::String > & GetFleetsAllowed() const
AWS_CODEBUILD_API BatchRestrictions()=default
bool ComputeTypesAllowedHasBeenSet() const
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)
bool MaximumBuildsAllowedHasBeenSet() const
BatchRestrictions & WithComputeTypesAllowed(ComputeTypesAllowedT &&value)
BatchRestrictions & WithMaximumBuildsAllowed(int value)
void SetMaximumBuildsAllowed(int value)
AWS_CODEBUILD_API BatchRestrictions & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetMaximumBuildsAllowed() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue