SourceControlInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. fluent. models. SourceControlInner
- com.
- com.
- com.
public final class SourceControlInner
extends ProxyOnlyResource
The source control OAuth token.
Constructor Summary
Constructor | Description |
---|---|
SourceControlInner() |
Creates an instance of Source |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
expirationTime()
Get the expiration |
static
Source |
fromJson(JsonReader jsonReader)
Reads an instance of Source |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
refreshToken()
Get the refresh |
Json |
toJson(JsonWriter jsonWriter) |
String |
token()
Get the token property: OAuth access token. |
String |
tokenSecret()
Get the token |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Source |
withExpirationTime(OffsetDateTime expirationTime)
Set the expiration |
Source |
withKind(String kind)
Set the kind property: Kind of resource. |
Source |
withRefreshToken(String refreshToken)
Set the refresh |
Source |
withToken(String token)
Set the token property: OAuth access token. |
Source |
withTokenSecret(String tokenSecret)
Set the token |
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Constructor Details
SourceControlInner
public SourceControlInner()
Creates an instance of SourceControlInner class.
Method Details
expirationTime
public OffsetDateTime expirationTime()
Get the expirationTime property: OAuth token expiration.
Returns:
fromJson
public static SourceControlInner fromJson(JsonReader jsonReader)
Reads an instance of SourceControlInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SourceControlInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SourceControlInner.name()Returns:
refreshToken
public String refreshToken()
Get the refreshToken property: OAuth refresh token.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SourceControlInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
token
public String token()
Get the token property: OAuth access token.
Returns:
tokenSecret
public String tokenSecret()
Get the tokenSecret property: OAuth access token secret.
Returns:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SourceControlInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
SourceControlInner.validate()withExpirationTime
public SourceControlInner withExpirationTime(OffsetDateTime expirationTime)
Set the expirationTime property: OAuth token expiration.
Parameters:
Returns:
withKind
public SourceControlInner withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
SourceControlInner.withKind(String kind)Parameters:
withRefreshToken
public SourceControlInner withRefreshToken(String refreshToken)
Set the refreshToken property: OAuth refresh token.
Parameters:
Returns:
withToken
public SourceControlInner withToken(String token)
Set the token property: OAuth access token.
Parameters:
Returns:
withTokenSecret
public SourceControlInner withTokenSecret(String tokenSecret)
Set the tokenSecret property: OAuth access token secret.
Parameters:
Returns:
Applies to
Azure SDK for Java