Class TenantConfigurationSyncStateContractProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.TenantConfigurationSyncStateContractProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<TenantConfigurationSyncStateContractProperties>

public final class TenantConfigurationSyncStateContractProperties extends Object implements com.azure.json.JsonSerializable<TenantConfigurationSyncStateContractProperties>
Tenant Configuration Synchronization State.
  • Constructor Details

    • TenantConfigurationSyncStateContractProperties

      public TenantConfigurationSyncStateContractProperties()
      Creates an instance of TenantConfigurationSyncStateContractProperties class.
  • Method Details

    • branch

      public String 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 TenantConfigurationSyncStateContractProperties object itself.
    • commitId

      public String 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 TenantConfigurationSyncStateContractProperties object itself.
    • isExport

      public Boolean 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 TenantConfigurationSyncStateContractProperties object itself.
    • isSynced

      public Boolean 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 TenantConfigurationSyncStateContractProperties object itself.
    • isGitEnabled

      public Boolean isGitEnabled()
      Get the isGitEnabled property: value indicating whether Git configuration access is enabled.
      Returns:
      the isGitEnabled value.
    • withIsGitEnabled

      public TenantConfigurationSyncStateContractProperties withIsGitEnabled(Boolean isGitEnabled)
      Set the isGitEnabled property: value indicating whether Git configuration access is enabled.
      Parameters:
      isGitEnabled - the isGitEnabled value to set.
      Returns:
      the TenantConfigurationSyncStateContractProperties object itself.
    • syncDate

      public OffsetDateTime 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 TenantConfigurationSyncStateContractProperties object itself.
    • configurationChangeDate

      public OffsetDateTime 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 TenantConfigurationSyncStateContractProperties 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 TenantConfigurationSyncStateContractProperties object itself.
    • lastOperationId

      public String lastOperationId()
      Get the lastOperationId property: Most recent tenant configuration operation identifier.
      Returns:
      the lastOperationId value.
    • withLastOperationId

      public TenantConfigurationSyncStateContractProperties withLastOperationId(String lastOperationId)
      Set the lastOperationId property: Most recent tenant configuration operation identifier.
      Parameters:
      lastOperationId - the lastOperationId value to set.
      Returns:
      the TenantConfigurationSyncStateContractProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TenantConfigurationSyncStateContractProperties>
      Throws:
      IOException
    • fromJson

      public static TenantConfigurationSyncStateContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TenantConfigurationSyncStateContractProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TenantConfigurationSyncStateContractProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the TenantConfigurationSyncStateContractProperties.