@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssociateRepositoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AssociateRepositoryRequest() |
Modifier and Type | Method and Description |
---|---|
AssociateRepositoryRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
AssociateRepositoryRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
AssociateRepositoryRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientRequestToken()
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations
if there are failures and retries.
|
KMSKeyDetails |
getKMSKeyDetails()
A
KMSKeyDetails object that contains: |
Repository |
getRepository()
The repository to associate.
|
Map<String,String> |
getTags()
An array of key-value pairs used to tag an associated repository.
|
int |
hashCode() |
void |
setClientRequestToken(String clientRequestToken)
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations
if there are failures and retries.
|
void |
setKMSKeyDetails(KMSKeyDetails kMSKeyDetails)
A
KMSKeyDetails object that contains: |
void |
setRepository(Repository repository)
The repository to associate.
|
void |
setTags(Map<String,String> tags)
An array of key-value pairs used to tag an associated repository.
|
String |
toString()
Returns a string representation of this object.
|
AssociateRepositoryRequest |
withClientRequestToken(String clientRequestToken)
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations
if there are failures and retries.
|
AssociateRepositoryRequest |
withKMSKeyDetails(KMSKeyDetails kMSKeyDetails)
A
KMSKeyDetails object that contains: |
AssociateRepositoryRequest |
withRepository(Repository repository)
The repository to associate.
|
AssociateRepositoryRequest |
withTags(Map<String,String> tags)
An array of key-value pairs used to tag an associated repository.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRepository(Repository repository)
The repository to associate.
repository
- The repository to associate.public Repository getRepository()
The repository to associate.
public AssociateRepositoryRequest withRepository(Repository repository)
The repository to associate.
repository
- The repository to associate.public void setClientRequestToken(String clientRequestToken)
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
clientRequestToken
- Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository
associations if there are failures and retries.public String getClientRequestToken()
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
public AssociateRepositoryRequest withClientRequestToken(String clientRequestToken)
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
clientRequestToken
- Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository
associations if there are failures and retries.public Map<String,String> getTags()
An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
A tag key (for example, CostCenter
, Environment
, Project
, or
Secret
). Tag keys are case sensitive.
An optional field known as a tag value (for example, 111122223333
, Production
,
or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case
sensitive.
A tag key (for example, CostCenter
, Environment
, Project
,
or Secret
). Tag keys are case sensitive.
An optional field known as a tag value (for example, 111122223333
,
Production
, or a team name). Omitting the tag value is the same as using an empty string.
Like tag keys, tag values are case sensitive.
public void setTags(Map<String,String> tags)
An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
A tag key (for example, CostCenter
, Environment
, Project
, or
Secret
). Tag keys are case sensitive.
An optional field known as a tag value (for example, 111122223333
, Production
,
or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case
sensitive.
tags
- An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with
two parts:
A tag key (for example, CostCenter
, Environment
, Project
, or
Secret
). Tag keys are case sensitive.
An optional field known as a tag value (for example, 111122223333
,
Production
, or a team name). Omitting the tag value is the same as using an empty string.
Like tag keys, tag values are case sensitive.
public AssociateRepositoryRequest withTags(Map<String,String> tags)
An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
A tag key (for example, CostCenter
, Environment
, Project
, or
Secret
). Tag keys are case sensitive.
An optional field known as a tag value (for example, 111122223333
, Production
,
or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case
sensitive.
tags
- An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with
two parts:
A tag key (for example, CostCenter
, Environment
, Project
, or
Secret
). Tag keys are case sensitive.
An optional field known as a tag value (for example, 111122223333
,
Production
, or a team name). Omitting the tag value is the same as using an empty string.
Like tag keys, tag values are case sensitive.
public AssociateRepositoryRequest addTagsEntry(String key, String value)
public AssociateRepositoryRequest clearTagsEntries()
public void setKMSKeyDetails(KMSKeyDetails kMSKeyDetails)
A KMSKeyDetails
object that contains:
The encryption option for this repository association. It is either owned by Amazon Web Services Key Management
Service (KMS) (AWS_OWNED_CMK
) or customer managed (CUSTOMER_MANAGED_CMK
).
The ID of the Amazon Web Services KMS key that is associated with this repository association.
kMSKeyDetails
- A KMSKeyDetails
object that contains:
The encryption option for this repository association. It is either owned by Amazon Web Services Key
Management Service (KMS) (AWS_OWNED_CMK
) or customer managed (
CUSTOMER_MANAGED_CMK
).
The ID of the Amazon Web Services KMS key that is associated with this repository association.
public KMSKeyDetails getKMSKeyDetails()
A KMSKeyDetails
object that contains:
The encryption option for this repository association. It is either owned by Amazon Web Services Key Management
Service (KMS) (AWS_OWNED_CMK
) or customer managed (CUSTOMER_MANAGED_CMK
).
The ID of the Amazon Web Services KMS key that is associated with this repository association.
KMSKeyDetails
object that contains:
The encryption option for this repository association. It is either owned by Amazon Web Services Key
Management Service (KMS) (AWS_OWNED_CMK
) or customer managed (
CUSTOMER_MANAGED_CMK
).
The ID of the Amazon Web Services KMS key that is associated with this repository association.
public AssociateRepositoryRequest withKMSKeyDetails(KMSKeyDetails kMSKeyDetails)
A KMSKeyDetails
object that contains:
The encryption option for this repository association. It is either owned by Amazon Web Services Key Management
Service (KMS) (AWS_OWNED_CMK
) or customer managed (CUSTOMER_MANAGED_CMK
).
The ID of the Amazon Web Services KMS key that is associated with this repository association.
kMSKeyDetails
- A KMSKeyDetails
object that contains:
The encryption option for this repository association. It is either owned by Amazon Web Services Key
Management Service (KMS) (AWS_OWNED_CMK
) or customer managed (
CUSTOMER_MANAGED_CMK
).
The ID of the Amazon Web Services KMS key that is associated with this repository association.
public String toString()
toString
in class Object
Object.toString()
public AssociateRepositoryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()