@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchRestrictions extends Object implements Serializable, Cloneable, StructuredPojo
Specifies restrictions for the batch build.
Constructor and Description |
---|
BatchRestrictions() |
Modifier and Type | Method and Description |
---|---|
BatchRestrictions |
clone() |
boolean |
equals(Object obj) |
List<String> |
getComputeTypesAllowed()
An array of strings that specify the compute types that are allowed for the batch build.
|
Integer |
getMaximumBuildsAllowed()
Specifies the maximum number of builds allowed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComputeTypesAllowed(Collection<String> computeTypesAllowed)
An array of strings that specify the compute types that are allowed for the batch build.
|
void |
setMaximumBuildsAllowed(Integer maximumBuildsAllowed)
Specifies the maximum number of builds allowed.
|
String |
toString()
Returns a string representation of this object.
|
BatchRestrictions |
withComputeTypesAllowed(Collection<String> computeTypesAllowed)
An array of strings that specify the compute types that are allowed for the batch build.
|
BatchRestrictions |
withComputeTypesAllowed(String... computeTypesAllowed)
An array of strings that specify the compute types that are allowed for the batch build.
|
BatchRestrictions |
withMaximumBuildsAllowed(Integer maximumBuildsAllowed)
Specifies the maximum number of builds allowed.
|
public void setMaximumBuildsAllowed(Integer maximumBuildsAllowed)
Specifies the maximum number of builds allowed.
maximumBuildsAllowed
- Specifies the maximum number of builds allowed.public Integer getMaximumBuildsAllowed()
Specifies the maximum number of builds allowed.
public BatchRestrictions withMaximumBuildsAllowed(Integer maximumBuildsAllowed)
Specifies the maximum number of builds allowed.
maximumBuildsAllowed
- Specifies the maximum number of builds allowed.public List<String> getComputeTypesAllowed()
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
public void setComputeTypesAllowed(Collection<String> computeTypesAllowed)
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
computeTypesAllowed
- An array of strings that specify the compute types that are allowed for the batch build. See Build
environment compute types in the CodeBuild User Guide for these values.public BatchRestrictions withComputeTypesAllowed(String... computeTypesAllowed)
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
NOTE: This method appends the values to the existing list (if any). Use
setComputeTypesAllowed(java.util.Collection)
or withComputeTypesAllowed(java.util.Collection)
if you want to override the existing values.
computeTypesAllowed
- An array of strings that specify the compute types that are allowed for the batch build. See Build
environment compute types in the CodeBuild User Guide for these values.public BatchRestrictions withComputeTypesAllowed(Collection<String> computeTypesAllowed)
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
computeTypesAllowed
- An array of strings that specify the compute types that are allowed for the batch build. See Build
environment compute types in the CodeBuild User Guide for these values.public String toString()
toString
in class Object
Object.toString()
public BatchRestrictions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.