@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateTemplatePermissionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateTemplatePermissionsRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateTemplatePermissionsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAwsAccountId()
The ID of the AWS account that contains the template.
|
List<ResourcePermission> |
getGrantPermissions()
A list of resource permissions to be granted on the template.
|
List<ResourcePermission> |
getRevokePermissions()
A list of resource permissions to be revoked from the template.
|
String |
getTemplateId()
The ID for the template.
|
int |
hashCode() |
void |
setAwsAccountId(String awsAccountId)
The ID of the AWS account that contains the template.
|
void |
setGrantPermissions(Collection<ResourcePermission> grantPermissions)
A list of resource permissions to be granted on the template.
|
void |
setRevokePermissions(Collection<ResourcePermission> revokePermissions)
A list of resource permissions to be revoked from the template.
|
void |
setTemplateId(String templateId)
The ID for the template.
|
String |
toString()
Returns a string representation of this object.
|
UpdateTemplatePermissionsRequest |
withAwsAccountId(String awsAccountId)
The ID of the AWS account that contains the template.
|
UpdateTemplatePermissionsRequest |
withGrantPermissions(Collection<ResourcePermission> grantPermissions)
A list of resource permissions to be granted on the template.
|
UpdateTemplatePermissionsRequest |
withGrantPermissions(ResourcePermission... grantPermissions)
A list of resource permissions to be granted on the template.
|
UpdateTemplatePermissionsRequest |
withRevokePermissions(Collection<ResourcePermission> revokePermissions)
A list of resource permissions to be revoked from the template.
|
UpdateTemplatePermissionsRequest |
withRevokePermissions(ResourcePermission... revokePermissions)
A list of resource permissions to be revoked from the template.
|
UpdateTemplatePermissionsRequest |
withTemplateId(String templateId)
The ID for the template.
|
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 setAwsAccountId(String awsAccountId)
The ID of the AWS account that contains the template.
awsAccountId
- The ID of the AWS account that contains the template.public String getAwsAccountId()
The ID of the AWS account that contains the template.
public UpdateTemplatePermissionsRequest withAwsAccountId(String awsAccountId)
The ID of the AWS account that contains the template.
awsAccountId
- The ID of the AWS account that contains the template.public void setTemplateId(String templateId)
The ID for the template.
templateId
- The ID for the template.public String getTemplateId()
The ID for the template.
public UpdateTemplatePermissionsRequest withTemplateId(String templateId)
The ID for the template.
templateId
- The ID for the template.public List<ResourcePermission> getGrantPermissions()
A list of resource permissions to be granted on the template.
public void setGrantPermissions(Collection<ResourcePermission> grantPermissions)
A list of resource permissions to be granted on the template.
grantPermissions
- A list of resource permissions to be granted on the template.public UpdateTemplatePermissionsRequest withGrantPermissions(ResourcePermission... grantPermissions)
A list of resource permissions to be granted on the template.
NOTE: This method appends the values to the existing list (if any). Use
setGrantPermissions(java.util.Collection)
or withGrantPermissions(java.util.Collection)
if you
want to override the existing values.
grantPermissions
- A list of resource permissions to be granted on the template.public UpdateTemplatePermissionsRequest withGrantPermissions(Collection<ResourcePermission> grantPermissions)
A list of resource permissions to be granted on the template.
grantPermissions
- A list of resource permissions to be granted on the template.public List<ResourcePermission> getRevokePermissions()
A list of resource permissions to be revoked from the template.
public void setRevokePermissions(Collection<ResourcePermission> revokePermissions)
A list of resource permissions to be revoked from the template.
revokePermissions
- A list of resource permissions to be revoked from the template.public UpdateTemplatePermissionsRequest withRevokePermissions(ResourcePermission... revokePermissions)
A list of resource permissions to be revoked from the template.
NOTE: This method appends the values to the existing list (if any). Use
setRevokePermissions(java.util.Collection)
or withRevokePermissions(java.util.Collection)
if
you want to override the existing values.
revokePermissions
- A list of resource permissions to be revoked from the template.public UpdateTemplatePermissionsRequest withRevokePermissions(Collection<ResourcePermission> revokePermissions)
A list of resource permissions to be revoked from the template.
revokePermissions
- A list of resource permissions to be revoked from the template.public String toString()
toString
in class Object
Object.toString()
public UpdateTemplatePermissionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.