Class TenantConfigurationSyncStateContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.TenantConfigurationSyncStateContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class TenantConfigurationSyncStateContractInner
extends com.azure.core.management.ProxyResource
Result of Tenant Configuration Sync State.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TenantConfigurationSyncStateContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()Get the branch property: The name of Git branch.commitId()Get the commitId property: The latest commit Id.Get the configurationChangeDate property: The date of the latest configuration change.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TenantConfigurationSyncStateContractInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.isExport()Get the isExport property: value indicating if last sync was save (true) or deploy (false) operation.Get the isGitEnabled property: value indicating whether Git configuration access is enabled.isSynced()Get the isSynced property: value indicating if last synchronization was later than the configuration change.Get the lastOperationId property: Most recent tenant configuration operation identifier.name()Get the name property: The name of the resource.syncDate()Get the syncDate property: The date of the latest synchronization.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withBranch(String branch) Set the branch property: The name of Git branch.withCommitId(String commitId) Set the commitId property: The latest commit Id.withConfigurationChangeDate(OffsetDateTime configurationChangeDate) Set the configurationChangeDate property: The date of the latest configuration change.withIsExport(Boolean isExport) Set the isExport property: value indicating if last sync was save (true) or deploy (false) operation.withIsGitEnabled(Boolean isGitEnabled) Set the isGitEnabled property: value indicating whether Git configuration access is enabled.withIsSynced(Boolean isSynced) Set the isSynced property: value indicating if last synchronization was later than the configuration change.withLastOperationId(String lastOperationId) Set the lastOperationId property: Most recent tenant configuration operation identifier.withSyncDate(OffsetDateTime syncDate) Set the syncDate property: The date of the latest synchronization.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TenantConfigurationSyncStateContractInner
public TenantConfigurationSyncStateContractInner()Creates an instance of TenantConfigurationSyncStateContractInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
branch
Get the branch property: The name of Git branch.- Returns:
- the branch value.
-
withBranch
Set the branch property: The name of Git branch.- Parameters:
branch- the branch value to set.- Returns:
- the TenantConfigurationSyncStateContractInner object itself.
-
commitId
Get the commitId property: The latest commit Id.- Returns:
- the commitId value.
-
withCommitId
Set the commitId property: The latest commit Id.- Parameters:
commitId- the commitId value to set.- Returns:
- the TenantConfigurationSyncStateContractInner object itself.
-
isExport
Get the isExport property: value indicating if last sync was save (true) or deploy (false) operation.- Returns:
- the isExport value.
-
withIsExport
Set the isExport property: value indicating if last sync was save (true) or deploy (false) operation.- Parameters:
isExport- the isExport value to set.- Returns:
- the TenantConfigurationSyncStateContractInner object itself.
-
isSynced
Get the isSynced property: value indicating if last synchronization was later than the configuration change.- Returns:
- the isSynced value.
-
withIsSynced
Set the isSynced property: value indicating if last synchronization was later than the configuration change.- Parameters:
isSynced- the isSynced value to set.- Returns:
- the TenantConfigurationSyncStateContractInner object itself.
-
isGitEnabled
Get the isGitEnabled property: value indicating whether Git configuration access is enabled.- Returns:
- the isGitEnabled value.
-
withIsGitEnabled
Set the isGitEnabled property: value indicating whether Git configuration access is enabled.- Parameters:
isGitEnabled- the isGitEnabled value to set.- Returns:
- the TenantConfigurationSyncStateContractInner object itself.
-
syncDate
Get the syncDate property: The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the syncDate value.
-
withSyncDate
Set the syncDate property: The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
syncDate- the syncDate value to set.- Returns:
- the TenantConfigurationSyncStateContractInner object itself.
-
configurationChangeDate
Get the configurationChangeDate property: The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the configurationChangeDate value.
-
withConfigurationChangeDate
public TenantConfigurationSyncStateContractInner withConfigurationChangeDate(OffsetDateTime configurationChangeDate) Set the configurationChangeDate property: The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
configurationChangeDate- the configurationChangeDate value to set.- Returns:
- the TenantConfigurationSyncStateContractInner object itself.
-
lastOperationId
Get the lastOperationId property: Most recent tenant configuration operation identifier.- Returns:
- the lastOperationId value.
-
withLastOperationId
Set the lastOperationId property: Most recent tenant configuration operation identifier.- Parameters:
lastOperationId- the lastOperationId value to set.- Returns:
- the TenantConfigurationSyncStateContractInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static TenantConfigurationSyncStateContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TenantConfigurationSyncStateContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TenantConfigurationSyncStateContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the TenantConfigurationSyncStateContractInner.
-