@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StartDeviceAuthorizationResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
StartDeviceAuthorizationResult() |
Modifier and Type | Method and Description |
---|---|
StartDeviceAuthorizationResult |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceCode()
The short-lived code that is used by the device when polling for a session token.
|
Integer |
getExpiresIn()
Indicates the number of seconds in which the verification code will become invalid.
|
Integer |
getInterval()
Indicates the number of seconds the client must wait between attempts when polling for a session.
|
String |
getUserCode()
A one-time user verification code.
|
String |
getVerificationUri()
The URI of the verification page that takes the
userCode to authorize the device. |
String |
getVerificationUriComplete()
An alternate URL that the client can use to automatically launch a browser.
|
int |
hashCode() |
void |
setDeviceCode(String deviceCode)
The short-lived code that is used by the device when polling for a session token.
|
void |
setExpiresIn(Integer expiresIn)
Indicates the number of seconds in which the verification code will become invalid.
|
void |
setInterval(Integer interval)
Indicates the number of seconds the client must wait between attempts when polling for a session.
|
void |
setUserCode(String userCode)
A one-time user verification code.
|
void |
setVerificationUri(String verificationUri)
The URI of the verification page that takes the
userCode to authorize the device. |
void |
setVerificationUriComplete(String verificationUriComplete)
An alternate URL that the client can use to automatically launch a browser.
|
String |
toString()
Returns a string representation of this object.
|
StartDeviceAuthorizationResult |
withDeviceCode(String deviceCode)
The short-lived code that is used by the device when polling for a session token.
|
StartDeviceAuthorizationResult |
withExpiresIn(Integer expiresIn)
Indicates the number of seconds in which the verification code will become invalid.
|
StartDeviceAuthorizationResult |
withInterval(Integer interval)
Indicates the number of seconds the client must wait between attempts when polling for a session.
|
StartDeviceAuthorizationResult |
withUserCode(String userCode)
A one-time user verification code.
|
StartDeviceAuthorizationResult |
withVerificationUri(String verificationUri)
The URI of the verification page that takes the
userCode to authorize the device. |
StartDeviceAuthorizationResult |
withVerificationUriComplete(String verificationUriComplete)
An alternate URL that the client can use to automatically launch a browser.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setDeviceCode(String deviceCode)
The short-lived code that is used by the device when polling for a session token.
deviceCode
- The short-lived code that is used by the device when polling for a session token.public String getDeviceCode()
The short-lived code that is used by the device when polling for a session token.
public StartDeviceAuthorizationResult withDeviceCode(String deviceCode)
The short-lived code that is used by the device when polling for a session token.
deviceCode
- The short-lived code that is used by the device when polling for a session token.public void setUserCode(String userCode)
A one-time user verification code. This is needed to authorize an in-use device.
userCode
- A one-time user verification code. This is needed to authorize an in-use device.public String getUserCode()
A one-time user verification code. This is needed to authorize an in-use device.
public StartDeviceAuthorizationResult withUserCode(String userCode)
A one-time user verification code. This is needed to authorize an in-use device.
userCode
- A one-time user verification code. This is needed to authorize an in-use device.public void setVerificationUri(String verificationUri)
The URI of the verification page that takes the userCode
to authorize the device.
verificationUri
- The URI of the verification page that takes the userCode
to authorize the device.public String getVerificationUri()
The URI of the verification page that takes the userCode
to authorize the device.
userCode
to authorize the device.public StartDeviceAuthorizationResult withVerificationUri(String verificationUri)
The URI of the verification page that takes the userCode
to authorize the device.
verificationUri
- The URI of the verification page that takes the userCode
to authorize the device.public void setVerificationUriComplete(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.
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.public String getVerificationUriComplete()
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.
public StartDeviceAuthorizationResult withVerificationUriComplete(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.
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.public void setExpiresIn(Integer expiresIn)
Indicates the number of seconds in which the verification code will become invalid.
expiresIn
- Indicates the number of seconds in which the verification code will become invalid.public Integer getExpiresIn()
Indicates the number of seconds in which the verification code will become invalid.
public StartDeviceAuthorizationResult withExpiresIn(Integer expiresIn)
Indicates the number of seconds in which the verification code will become invalid.
expiresIn
- Indicates the number of seconds in which the verification code will become invalid.public void setInterval(Integer interval)
Indicates the number of seconds the client must wait between attempts when polling for a session.
interval
- Indicates the number of seconds the client must wait between attempts when polling for a session.public Integer getInterval()
Indicates the number of seconds the client must wait between attempts when polling for a session.
public StartDeviceAuthorizationResult withInterval(Integer interval)
Indicates the number of seconds the client must wait between attempts when polling for a session.
interval
- Indicates the number of seconds the client must wait between attempts when polling for a session.public String toString()
toString
in class Object
Object.toString()
public StartDeviceAuthorizationResult clone()