public class ModifyIdFormatRequest extends AmazonWebServiceRequest implements java.io.Serializable
ModifyIdFormat operation
.
Modifies the ID format for the specified resource on a per-region
basis. You can specify that resources should receive longer IDs
(17-character IDs) when they are created. The following resource types
support longer IDs: instance
|
reservation
|
snapshot
|
volume
.
This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user or as an IAM role that has permission to use this action, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Controlling Access to Longer ID Settings in the Amazon Elastic Compute Cloud User Guide .
Resources created with longer IDs are visible to all IAM users,
regardless of these settings and provided that they have permission to
use the relevant Describe
command for the resource type.
Constructor and Description |
---|
ModifyIdFormatRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResource()
The type of resource.
|
java.lang.Boolean |
getUseLongIds()
Indicate whether the resource should use longer IDs (17-character
IDs).
|
int |
hashCode() |
java.lang.Boolean |
isUseLongIds()
Indicate whether the resource should use longer IDs (17-character
IDs).
|
void |
setResource(java.lang.String resource)
The type of resource.
|
void |
setUseLongIds(java.lang.Boolean useLongIds)
Indicate whether the resource should use longer IDs (17-character
IDs).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyIdFormatRequest |
withResource(java.lang.String resource)
The type of resource.
|
ModifyIdFormatRequest |
withUseLongIds(java.lang.Boolean useLongIds)
Indicate whether the resource should use longer IDs (17-character
IDs).
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getResource()
public void setResource(java.lang.String resource)
resource
- The type of resource.public ModifyIdFormatRequest withResource(java.lang.String resource)
Returns a reference to this object so that method calls can be chained together.
resource
- The type of resource.public java.lang.Boolean isUseLongIds()
public void setUseLongIds(java.lang.Boolean useLongIds)
useLongIds
- Indicate whether the resource should use longer IDs (17-character
IDs).public ModifyIdFormatRequest withUseLongIds(java.lang.Boolean useLongIds)
Returns a reference to this object so that method calls can be chained together.
useLongIds
- Indicate whether the resource should use longer IDs (17-character
IDs).public java.lang.Boolean getUseLongIds()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.