Class SiteContainerInner

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

public final class SiteContainerInner extends ProxyOnlyResource
Container of a site.
  • Constructor Details

    • SiteContainerInner

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

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class ProxyOnlyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class ProxyOnlyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class ProxyOnlyResource
      Returns:
      the id value.
    • withKind

      public SiteContainerInner withKind(String kind)
      Set the kind property: Kind of resource.
      Overrides:
      withKind in class ProxyOnlyResource
      Parameters:
      kind - the kind value to set.
      Returns:
      the ProxyOnlyResource object itself.
    • image

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

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

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

      public SiteContainerInner withTargetPort(String targetPort)
      Set the targetPort property: Target Port.
      Parameters:
      targetPort - the targetPort value to set.
      Returns:
      the SiteContainerInner 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 SiteContainerInner 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 SiteContainerInner object itself.
    • startUpCommand

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

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

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

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

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

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

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

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

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

      public SiteContainerInner withUserManagedIdentityClientId(String userManagedIdentityClientId)
      Set the userManagedIdentityClientId property: UserManagedIdentity ClientId.
      Parameters:
      userManagedIdentityClientId - the userManagedIdentityClientId value to set.
      Returns:
      the SiteContainerInner 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 SiteContainerInner withVolumeMounts(List<VolumeMount> volumeMounts)
      Set the volumeMounts property: List of volume mounts.
      Parameters:
      volumeMounts - the volumeMounts value to set.
      Returns:
      the SiteContainerInner object itself.
    • environmentVariables

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

      public SiteContainerInner withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
      Set the environmentVariables property: List of environment variables.
      Parameters:
      environmentVariables - the environmentVariables value to set.
      Returns:
      the SiteContainerInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ProxyOnlyResource
      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 ProxyOnlyResource
      Throws:
      IOException
    • fromJson

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