Class StartDeviceAuthorizationResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.ssooidc.model.SsoOidcResponse
-
- software.amazon.awssdk.services.ssooidc.model.StartDeviceAuthorizationResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<StartDeviceAuthorizationResponse.Builder,StartDeviceAuthorizationResponse>
@Generated("software.amazon.awssdk:codegen") public final class StartDeviceAuthorizationResponse extends SsoOidcResponse implements ToCopyableBuilder<StartDeviceAuthorizationResponse.Builder,StartDeviceAuthorizationResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStartDeviceAuthorizationResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartDeviceAuthorizationResponse.Builderbuilder()StringdeviceCode()The short-lived code that is used by the device when polling for a session token.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)IntegerexpiresIn()Indicates the number of seconds in which the verification code will become invalid.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerinterval()Indicates the number of seconds the client must wait between attempts when polling for a session.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StartDeviceAuthorizationResponse.Builder>serializableBuilderClass()StartDeviceAuthorizationResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuserCode()A one-time user verification code.StringverificationUri()The URI of the verification page that takes theuserCodeto authorize the device.StringverificationUriComplete()An alternate URL that the client can use to automatically launch a browser.-
Methods inherited from class software.amazon.awssdk.services.ssooidc.model.SsoOidcResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
deviceCode
public final String deviceCode()
The short-lived code that is used by the device when polling for a session token.
- Returns:
- The short-lived code that is used by the device when polling for a session token.
-
userCode
public final String userCode()
A one-time user verification code. This is needed to authorize an in-use device.
- Returns:
- A one-time user verification code. This is needed to authorize an in-use device.
-
verificationUri
public final String verificationUri()
The URI of the verification page that takes the
userCodeto authorize the device.- Returns:
- The URI of the verification page that takes the
userCodeto authorize the device.
-
verificationUriComplete
public final String verificationUriComplete()
An alternate URL that the client can use to automatically launch a browser. This process skips the manual step in which the user visits the verification page and enters their code.
- Returns:
- An alternate URL that the client can use to automatically launch a browser. This process skips the manual step in which the user visits the verification page and enters their code.
-
expiresIn
public final Integer expiresIn()
Indicates the number of seconds in which the verification code will become invalid.
- Returns:
- Indicates the number of seconds in which the verification code will become invalid.
-
interval
public final Integer interval()
Indicates the number of seconds the client must wait between attempts when polling for a session.
- Returns:
- Indicates the number of seconds the client must wait between attempts when polling for a session.
-
toBuilder
public StartDeviceAuthorizationResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StartDeviceAuthorizationResponse.Builder,StartDeviceAuthorizationResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static StartDeviceAuthorizationResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends StartDeviceAuthorizationResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-