@Generated(value="software.amazon.awssdk:codegen") public class GrantAccessRequest extends OpsWorksRequest implements ToCopyableBuilder<GrantAccessRequest.Builder,GrantAccessRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
GrantAccessRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static GrantAccessRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
instanceId()
The instance's AWS OpsWorks Stacks ID.
|
static Class<? extends GrantAccessRequest.Builder> |
serializableBuilderClass() |
GrantAccessRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
validForInMinutes()
The length of time (in minutes) that the grant is valid.
|
requestOverrideConfig
copy
public String instanceId()
The instance's AWS OpsWorks Stacks ID.
public Integer validForInMinutes()
The length of time (in minutes) that the grant is valid. When the grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, he or she automatically will be logged out.
public GrantAccessRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GrantAccessRequest.Builder,GrantAccessRequest>
toBuilder
in class OpsWorksRequest
public static GrantAccessRequest.Builder builder()
public static Class<? extends GrantAccessRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.