Class SourceControlCreateOrUpdateParameters

java.lang.Object
com.azure.resourcemanager.automation.models.SourceControlCreateOrUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceControlCreateOrUpdateParameters>

public final class SourceControlCreateOrUpdateParameters extends Object implements com.azure.json.JsonSerializable<SourceControlCreateOrUpdateParameters>
The parameters supplied to the create or update source control operation.
  • Constructor Details

    • SourceControlCreateOrUpdateParameters

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

    • repoUrl

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

      public SourceControlCreateOrUpdateParameters withRepoUrl(String repoUrl)
      Set the repoUrl property: The repo url of the source control.
      Parameters:
      repoUrl - the repoUrl value to set.
      Returns:
      the SourceControlCreateOrUpdateParameters 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 SourceControlCreateOrUpdateParameters 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 SourceControlCreateOrUpdateParameters object itself.
    • folderPath

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

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

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

      public SourceControlCreateOrUpdateParameters withAutoSync(Boolean autoSync)
      Set the autoSync property: The auto async of the source control. Default is false.
      Parameters:
      autoSync - the autoSync value to set.
      Returns:
      the SourceControlCreateOrUpdateParameters 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 SourceControlCreateOrUpdateParameters 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 SourceControlCreateOrUpdateParameters object itself.
    • sourceType

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

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

      public SourceControlSecurityTokenProperties securityToken()
      Get the securityToken property: The authorization token for the repo of the source control.
      Returns:
      the securityToken value.
    • withSecurityToken

      Set the securityToken property: The authorization token for the repo of the source control.
      Parameters:
      securityToken - the securityToken value to set.
      Returns:
      the SourceControlCreateOrUpdateParameters object itself.
    • description

      public String description()
      Get the description property: The user description of the source control.
      Returns:
      the description value.
    • withDescription

      public SourceControlCreateOrUpdateParameters withDescription(String description)
      Set the description property: The user description of the source control.
      Parameters:
      description - the description value to set.
      Returns:
      the SourceControlCreateOrUpdateParameters 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<SourceControlCreateOrUpdateParameters>
      Throws:
      IOException
    • fromJson

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