public class SourceControlInner extends ProxyOnlyResource
| Constructor and Description |
|---|
SourceControlInner() |
| 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.
|
SourceControlInner |
withExpirationTime(OffsetDateTime expirationTime)
Set the expirationTime property: OAuth token expiration.
|
SourceControlInner |
withKind(String kind)
Set the kind property: Kind of resource.
|
SourceControlInner |
withRefreshToken(String refreshToken)
Set the refreshToken property: OAuth refresh token.
|
SourceControlInner |
withToken(String token)
Set the token property: OAuth access token.
|
SourceControlInner |
withTokenSecret(String tokenSecret)
Set the tokenSecret property: OAuth access token secret.
|
kindpublic String token()
public SourceControlInner withToken(String token)
token - the token value to set.public String tokenSecret()
public SourceControlInner withTokenSecret(String tokenSecret)
tokenSecret - the tokenSecret value to set.public String refreshToken()
public SourceControlInner withRefreshToken(String refreshToken)
refreshToken - the refreshToken value to set.public OffsetDateTime expirationTime()
public SourceControlInner withExpirationTime(OffsetDateTime expirationTime)
expirationTime - the expirationTime value to set.public SourceControlInner withKind(String kind)
withKind in class ProxyOnlyResourcekind - the kind value to set.public void validate()
validate in class ProxyOnlyResourceIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.