@Generated(value="software.amazon.awssdk:codegen") public final class ModifyVpcEndpointServicePermissionsRequest extends Ec2Request implements ToCopyableBuilder<ModifyVpcEndpointServicePermissionsRequest.Builder,ModifyVpcEndpointServicePermissionsRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModifyVpcEndpointServicePermissionsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addAllowedPrincipals()
The Amazon Resource Names (ARN) of one or more principals.
|
static ModifyVpcEndpointServicePermissionsRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAddAllowedPrincipals()
For responses, this returns true if the service returned a value for the AddAllowedPrincipals property.
|
int |
hashCode() |
boolean |
hasRemoveAllowedPrincipals()
For responses, this returns true if the service returned a value for the RemoveAllowedPrincipals property.
|
List<String> |
removeAllowedPrincipals()
The Amazon Resource Names (ARN) of one or more principals.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ModifyVpcEndpointServicePermissionsRequest.Builder> |
serializableBuilderClass() |
String |
serviceId()
The ID of the service.
|
ModifyVpcEndpointServicePermissionsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String serviceId()
The ID of the service.
public final boolean hasAddAllowedPrincipals()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> addAllowedPrincipals()
The Amazon Resource Names (ARN) of one or more principals. Permissions are granted to the principals in this list. To grant permissions to all principals, specify an asterisk (*).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAddAllowedPrincipals() method.
public final boolean hasRemoveAllowedPrincipals()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> removeAllowedPrincipals()
The Amazon Resource Names (ARN) of one or more principals. Permissions are revoked for principals in this list.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRemoveAllowedPrincipals() method.
public ModifyVpcEndpointServicePermissionsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ModifyVpcEndpointServicePermissionsRequest.Builder,ModifyVpcEndpointServicePermissionsRequest>toBuilder in class Ec2Requestpublic static ModifyVpcEndpointServicePermissionsRequest.Builder builder()
public static Class<? extends ModifyVpcEndpointServicePermissionsRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.