public final class SourceControlProperties extends Object
| Constructor and Description |
|---|
SourceControlProperties() |
| Modifier and Type | Method and Description |
|---|---|
OffsetDateTime |
expirationTime()
Get the expirationTime property: OAuth token expiration.
|
String |
refreshToken()
Get the refreshToken property: OAuth refresh token.
|
String |
token()
Get the token property: OAuth access token.
|
String |
tokenSecret()
Get the tokenSecret property: OAuth access token secret.
|
void |
validate()
Validates the instance.
|
SourceControlProperties |
withExpirationTime(OffsetDateTime expirationTime)
Set the expirationTime property: OAuth token expiration.
|
SourceControlProperties |
withRefreshToken(String refreshToken)
Set the refreshToken property: OAuth refresh token.
|
SourceControlProperties |
withToken(String token)
Set the token property: OAuth access token.
|
SourceControlProperties |
withTokenSecret(String tokenSecret)
Set the tokenSecret property: OAuth access token secret.
|
public String token()
public SourceControlProperties withToken(String token)
token - the token value to set.public String tokenSecret()
public SourceControlProperties withTokenSecret(String tokenSecret)
tokenSecret - the tokenSecret value to set.public String refreshToken()
public SourceControlProperties withRefreshToken(String refreshToken)
refreshToken - the refreshToken value to set.public OffsetDateTime expirationTime()
public SourceControlProperties withExpirationTime(OffsetDateTime expirationTime)
expirationTime - the expirationTime value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.