/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies restrictions for the batch build.See Also:
AWS
* API Reference
Specifies the maximum number of builds allowed.
*/ inline int GetMaximumBuildsAllowed() const{ return m_maximumBuildsAllowed; } /** *Specifies the maximum number of builds allowed.
*/ inline bool MaximumBuildsAllowedHasBeenSet() const { return m_maximumBuildsAllowedHasBeenSet; } /** *Specifies the maximum number of builds allowed.
*/ inline void SetMaximumBuildsAllowed(int value) { m_maximumBuildsAllowedHasBeenSet = true; m_maximumBuildsAllowed = value; } /** *Specifies the maximum number of builds allowed.
*/ inline BatchRestrictions& WithMaximumBuildsAllowed(int value) { SetMaximumBuildsAllowed(value); return *this;} /** *An array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline const Aws::VectorAn array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline bool ComputeTypesAllowedHasBeenSet() const { return m_computeTypesAllowedHasBeenSet; } /** *An array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline void SetComputeTypesAllowed(const Aws::VectorAn array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline void SetComputeTypesAllowed(Aws::VectorAn array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline BatchRestrictions& WithComputeTypesAllowed(const Aws::VectorAn array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline BatchRestrictions& WithComputeTypesAllowed(Aws::VectorAn array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline BatchRestrictions& AddComputeTypesAllowed(const Aws::String& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(value); return *this; } /** *An array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline BatchRestrictions& AddComputeTypesAllowed(Aws::String&& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(std::move(value)); return *this; } /** *An array of strings that specify the compute types that are allowed for the * batch build. See Build * environment compute types in the AWS CodeBuild User Guide for these * values.
*/ inline BatchRestrictions& AddComputeTypesAllowed(const char* value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(value); return *this; } private: int m_maximumBuildsAllowed; bool m_maximumBuildsAllowedHasBeenSet; Aws::Vector