Class SourceControlInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.automation.fluent.models.SourceControlInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class SourceControlInner extends com.azure.core.management.ProxyResource
Definition of the source control.
  • Constructor Details

    • SourceControlInner

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

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • repoUrl

      public String repoUrl()
      Get the repoUrl property: The repo url of the source control.
      Returns:
      the repoUrl value.
    • withRepoUrl

      public SourceControlInner withRepoUrl(String repoUrl)
      Set the repoUrl property: The repo url of the source control.
      Parameters:
      repoUrl - the repoUrl value to set.
      Returns:
      the SourceControlInner object itself.
    • branch

      public String branch()
      Get the branch property: The repo branch of the source control. Include branch as empty string for VsoTfvc.
      Returns:
      the branch value.
    • withBranch

      public SourceControlInner withBranch(String branch)
      Set the branch property: The repo branch of the source control. Include branch as empty string for VsoTfvc.
      Parameters:
      branch - the branch value to set.
      Returns:
      the SourceControlInner object itself.
    • folderPath

      public String folderPath()
      Get the folderPath property: The folder path of the source control.
      Returns:
      the folderPath value.
    • withFolderPath

      public SourceControlInner withFolderPath(String folderPath)
      Set the folderPath property: The folder path of the source control.
      Parameters:
      folderPath - the folderPath value to set.
      Returns:
      the SourceControlInner object itself.
    • autoSync

      public Boolean autoSync()
      Get the autoSync property: The auto sync of the source control. Default is false.
      Returns:
      the autoSync value.
    • withAutoSync

      public SourceControlInner withAutoSync(Boolean autoSync)
      Set the autoSync property: The auto sync of the source control. Default is false.
      Parameters:
      autoSync - the autoSync value to set.
      Returns:
      the SourceControlInner object itself.
    • publishRunbook

      public Boolean publishRunbook()
      Get the publishRunbook property: The auto publish of the source control. Default is true.
      Returns:
      the publishRunbook value.
    • withPublishRunbook

      public SourceControlInner withPublishRunbook(Boolean publishRunbook)
      Set the publishRunbook property: The auto publish of the source control. Default is true.
      Parameters:
      publishRunbook - the publishRunbook value to set.
      Returns:
      the SourceControlInner object itself.
    • sourceType

      public SourceType sourceType()
      Get the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub.
      Returns:
      the sourceType value.
    • withSourceType

      public SourceControlInner withSourceType(SourceType sourceType)
      Set the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub.
      Parameters:
      sourceType - the sourceType value to set.
      Returns:
      the SourceControlInner object itself.
    • description

      public String description()
      Get the description property: The description.
      Returns:
      the description value.
    • withDescription

      public SourceControlInner withDescription(String description)
      Set the description property: The description.
      Parameters:
      description - the description value to set.
      Returns:
      the SourceControlInner object itself.
    • creationTime

      public OffsetDateTime creationTime()
      Get the creationTime property: The creation time.
      Returns:
      the creationTime value.
    • withCreationTime

      public SourceControlInner withCreationTime(OffsetDateTime creationTime)
      Set the creationTime property: The creation time.
      Parameters:
      creationTime - the creationTime value to set.
      Returns:
      the SourceControlInner object itself.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: The last modified time.
      Returns:
      the lastModifiedTime value.
    • withLastModifiedTime

      public SourceControlInner withLastModifiedTime(OffsetDateTime lastModifiedTime)
      Set the lastModifiedTime property: The last modified time.
      Parameters:
      lastModifiedTime - the lastModifiedTime value to set.
      Returns:
      the SourceControlInner 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

      public static SourceControlInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SourceControlInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SourceControlInner 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 SourceControlInner.