Class SiteContainerProperties

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

public final class SiteContainerProperties extends Object implements com.azure.json.JsonSerializable<SiteContainerProperties>
SiteContainer resource specific properties.
  • Constructor Details

    • SiteContainerProperties

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

    • image

      public String image()
      Get the image property: Image Name.
      Returns:
      the image value.
    • withImage

      public SiteContainerProperties withImage(String image)
      Set the image property: Image Name.
      Parameters:
      image - the image value to set.
      Returns:
      the SiteContainerProperties object itself.
    • targetPort

      public String targetPort()
      Get the targetPort property: Target Port.
      Returns:
      the targetPort value.
    • withTargetPort

      public SiteContainerProperties withTargetPort(String targetPort)
      Set the targetPort property: Target Port.
      Parameters:
      targetPort - the targetPort value to set.
      Returns:
      the SiteContainerProperties object itself.
    • isMain

      public boolean isMain()
      Get the isMain property: <code>true</code> if the container is the main site container; <code>false</code> otherwise.
      Returns:
      the isMain value.
    • withIsMain

      public SiteContainerProperties withIsMain(boolean isMain)
      Set the isMain property: <code>true</code> if the container is the main site container; <code>false</code> otherwise.
      Parameters:
      isMain - the isMain value to set.
      Returns:
      the SiteContainerProperties object itself.
    • startUpCommand

      public String startUpCommand()
      Get the startUpCommand property: StartUp Command.
      Returns:
      the startUpCommand value.
    • withStartUpCommand

      public SiteContainerProperties withStartUpCommand(String startUpCommand)
      Set the startUpCommand property: StartUp Command.
      Parameters:
      startUpCommand - the startUpCommand value to set.
      Returns:
      the SiteContainerProperties object itself.
    • authType

      public AuthType authType()
      Get the authType property: Auth Type.
      Returns:
      the authType value.
    • withAuthType

      public SiteContainerProperties withAuthType(AuthType authType)
      Set the authType property: Auth Type.
      Parameters:
      authType - the authType value to set.
      Returns:
      the SiteContainerProperties object itself.
    • username

      public String username()
      Get the username property: User Name.
      Returns:
      the username value.
    • withUsername

      public SiteContainerProperties withUsername(String username)
      Set the username property: User Name.
      Parameters:
      username - the username value to set.
      Returns:
      the SiteContainerProperties object itself.
    • passwordSecret

      public String passwordSecret()
      Get the passwordSecret property: Password Secret.
      Returns:
      the passwordSecret value.
    • withPasswordSecret

      public SiteContainerProperties withPasswordSecret(String passwordSecret)
      Set the passwordSecret property: Password Secret.
      Parameters:
      passwordSecret - the passwordSecret value to set.
      Returns:
      the SiteContainerProperties object itself.
    • userManagedIdentityClientId

      public String userManagedIdentityClientId()
      Get the userManagedIdentityClientId property: UserManagedIdentity ClientId.
      Returns:
      the userManagedIdentityClientId value.
    • withUserManagedIdentityClientId

      public SiteContainerProperties withUserManagedIdentityClientId(String userManagedIdentityClientId)
      Set the userManagedIdentityClientId property: UserManagedIdentity ClientId.
      Parameters:
      userManagedIdentityClientId - the userManagedIdentityClientId value to set.
      Returns:
      the SiteContainerProperties object itself.
    • createdTime

      public OffsetDateTime createdTime()
      Get the createdTime property: Created Time.
      Returns:
      the createdTime value.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: Last Modified Time.
      Returns:
      the lastModifiedTime value.
    • volumeMounts

      public List<VolumeMount> volumeMounts()
      Get the volumeMounts property: List of volume mounts.
      Returns:
      the volumeMounts value.
    • withVolumeMounts

      public SiteContainerProperties withVolumeMounts(List<VolumeMount> volumeMounts)
      Set the volumeMounts property: List of volume mounts.
      Parameters:
      volumeMounts - the volumeMounts value to set.
      Returns:
      the SiteContainerProperties object itself.
    • environmentVariables

      public List<EnvironmentVariable> environmentVariables()
      Get the environmentVariables property: List of environment variables.
      Returns:
      the environmentVariables value.
    • withEnvironmentVariables

      public SiteContainerProperties withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
      Set the environmentVariables property: List of environment variables.
      Parameters:
      environmentVariables - the environmentVariables value to set.
      Returns:
      the SiteContainerProperties 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<SiteContainerProperties>
      Throws:
      IOException
    • fromJson

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