Class PutRepositoryTriggersRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.codecommit.model.PutRepositoryTriggersRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class PutRepositoryTriggersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input ofa put repository triggers operation.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutRepositoryTriggersRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutRepositoryTriggersRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetRepositoryName()The name of the repository where you want to create or update the trigger.List<RepositoryTrigger>getTriggers()The JSON block of configuration information for each trigger.inthashCode()voidsetRepositoryName(String repositoryName)The name of the repository where you want to create or update the trigger.voidsetTriggers(Collection<RepositoryTrigger> triggers)The JSON block of configuration information for each trigger.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutRepositoryTriggersRequestwithRepositoryName(String repositoryName)The name of the repository where you want to create or update the trigger.PutRepositoryTriggersRequestwithTriggers(RepositoryTrigger... triggers)The JSON block of configuration information for each trigger.PutRepositoryTriggersRequestwithTriggers(Collection<RepositoryTrigger> triggers)The JSON block of configuration information for each trigger.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setRepositoryName
public void setRepositoryName(String repositoryName)
The name of the repository where you want to create or update the trigger.
- Parameters:
repositoryName- The name of the repository where you want to create or update the trigger.
-
getRepositoryName
public String getRepositoryName()
The name of the repository where you want to create or update the trigger.
- Returns:
- The name of the repository where you want to create or update the trigger.
-
withRepositoryName
public PutRepositoryTriggersRequest withRepositoryName(String repositoryName)
The name of the repository where you want to create or update the trigger.
- Parameters:
repositoryName- The name of the repository where you want to create or update the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTriggers
public List<RepositoryTrigger> getTriggers()
The JSON block of configuration information for each trigger.
- Returns:
- The JSON block of configuration information for each trigger.
-
setTriggers
public void setTriggers(Collection<RepositoryTrigger> triggers)
The JSON block of configuration information for each trigger.
- Parameters:
triggers- The JSON block of configuration information for each trigger.
-
withTriggers
public PutRepositoryTriggersRequest withTriggers(RepositoryTrigger... triggers)
The JSON block of configuration information for each trigger.
NOTE: This method appends the values to the existing list (if any). Use
setTriggers(java.util.Collection)orwithTriggers(java.util.Collection)if you want to override the existing values.- Parameters:
triggers- The JSON block of configuration information for each trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTriggers
public PutRepositoryTriggersRequest withTriggers(Collection<RepositoryTrigger> triggers)
The JSON block of configuration information for each trigger.
- Parameters:
triggers- The JSON block of configuration information for each trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutRepositoryTriggersRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-