@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateDataSourcePermissionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateDataSourcePermissionsRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateDataSourcePermissionsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAwsAccountId()
The Amazon Web Services account ID.
|
String |
getDataSourceId()
The ID of the data source.
|
List<ResourcePermission> |
getGrantPermissions()
A list of resource permissions that you want to grant on the data source.
|
List<ResourcePermission> |
getRevokePermissions()
A list of resource permissions that you want to revoke on the data source.
|
int |
hashCode() |
void |
setAwsAccountId(String awsAccountId)
The Amazon Web Services account ID.
|
void |
setDataSourceId(String dataSourceId)
The ID of the data source.
|
void |
setGrantPermissions(Collection<ResourcePermission> grantPermissions)
A list of resource permissions that you want to grant on the data source.
|
void |
setRevokePermissions(Collection<ResourcePermission> revokePermissions)
A list of resource permissions that you want to revoke on the data source.
|
String |
toString()
Returns a string representation of this object.
|
UpdateDataSourcePermissionsRequest |
withAwsAccountId(String awsAccountId)
The Amazon Web Services account ID.
|
UpdateDataSourcePermissionsRequest |
withDataSourceId(String dataSourceId)
The ID of the data source.
|
UpdateDataSourcePermissionsRequest |
withGrantPermissions(Collection<ResourcePermission> grantPermissions)
A list of resource permissions that you want to grant on the data source.
|
UpdateDataSourcePermissionsRequest |
withGrantPermissions(ResourcePermission... grantPermissions)
A list of resource permissions that you want to grant on the data source.
|
UpdateDataSourcePermissionsRequest |
withRevokePermissions(Collection<ResourcePermission> revokePermissions)
A list of resource permissions that you want to revoke on the data source.
|
UpdateDataSourcePermissionsRequest |
withRevokePermissions(ResourcePermission... revokePermissions)
A list of resource permissions that you want to revoke on the data source.
|
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 Amazon Web Services account ID.
awsAccountId
- The Amazon Web Services account ID.public String getAwsAccountId()
The Amazon Web Services account ID.
public UpdateDataSourcePermissionsRequest withAwsAccountId(String awsAccountId)
The Amazon Web Services account ID.
awsAccountId
- The Amazon Web Services account ID.public void setDataSourceId(String dataSourceId)
The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
dataSourceId
- The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services
account.public String getDataSourceId()
The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
public UpdateDataSourcePermissionsRequest withDataSourceId(String dataSourceId)
The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
dataSourceId
- The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services
account.public List<ResourcePermission> getGrantPermissions()
A list of resource permissions that you want to grant on the data source.
public void setGrantPermissions(Collection<ResourcePermission> grantPermissions)
A list of resource permissions that you want to grant on the data source.
grantPermissions
- A list of resource permissions that you want to grant on the data source.public UpdateDataSourcePermissionsRequest withGrantPermissions(ResourcePermission... grantPermissions)
A list of resource permissions that you want to grant on the data source.
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 that you want to grant on the data source.public UpdateDataSourcePermissionsRequest withGrantPermissions(Collection<ResourcePermission> grantPermissions)
A list of resource permissions that you want to grant on the data source.
grantPermissions
- A list of resource permissions that you want to grant on the data source.public List<ResourcePermission> getRevokePermissions()
A list of resource permissions that you want to revoke on the data source.
public void setRevokePermissions(Collection<ResourcePermission> revokePermissions)
A list of resource permissions that you want to revoke on the data source.
revokePermissions
- A list of resource permissions that you want to revoke on the data source.public UpdateDataSourcePermissionsRequest withRevokePermissions(ResourcePermission... revokePermissions)
A list of resource permissions that you want to revoke on the data source.
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 that you want to revoke on the data source.public UpdateDataSourcePermissionsRequest withRevokePermissions(Collection<ResourcePermission> revokePermissions)
A list of resource permissions that you want to revoke on the data source.
revokePermissions
- A list of resource permissions that you want to revoke on the data source.public String toString()
toString
in class Object
Object.toString()
public UpdateDataSourcePermissionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()