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 Summary
ConstructorsConstructorDescriptionCreates an instance of SiteContainerProperties class. -
Method Summary
Modifier and TypeMethodDescriptionauthType()
Get the authType property: Auth Type.Get the createdTime property: Created Time.Get the environmentVariables property: List of environment variables.static SiteContainerProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SiteContainerProperties from the JsonReader.image()
Get the image property: Image Name.boolean
isMain()
Get the isMain property: <code>true</code> if the container is the main site container; <code>false</code> otherwise.Get the lastModifiedTime property: Last Modified Time.Get the passwordSecret property: Password Secret.Get the startUpCommand property: StartUp Command.Get the targetPort property: Target Port.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the userManagedIdentityClientId property: UserManagedIdentity ClientId.username()
Get the username property: User Name.void
validate()
Validates the instance.Get the volumeMounts property: List of volume mounts.withAuthType
(AuthType authType) Set the authType property: Auth Type.withEnvironmentVariables
(List<EnvironmentVariable> environmentVariables) Set the environmentVariables property: List of environment variables.Set the image property: Image Name.withIsMain
(boolean isMain) Set the isMain property: <code>true</code> if the container is the main site container; <code>false</code> otherwise.withPasswordSecret
(String passwordSecret) Set the passwordSecret property: Password Secret.withStartUpCommand
(String startUpCommand) Set the startUpCommand property: StartUp Command.withTargetPort
(String targetPort) Set the targetPort property: Target Port.withUserManagedIdentityClientId
(String userManagedIdentityClientId) Set the userManagedIdentityClientId property: UserManagedIdentity ClientId.withUsername
(String username) Set the username property: User Name.withVolumeMounts
(List<VolumeMount> volumeMounts) Set the volumeMounts property: List of volume mounts.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SiteContainerProperties
public SiteContainerProperties()Creates an instance of SiteContainerProperties class.
-
-
Method Details
-
image
Get the image property: Image Name.- Returns:
- the image value.
-
withImage
Set the image property: Image Name.- Parameters:
image
- the image value to set.- Returns:
- the SiteContainerProperties object itself.
-
targetPort
Get the targetPort property: Target Port.- Returns:
- the targetPort value.
-
withTargetPort
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
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
Get the startUpCommand property: StartUp Command.- Returns:
- the startUpCommand value.
-
withStartUpCommand
Set the startUpCommand property: StartUp Command.- Parameters:
startUpCommand
- the startUpCommand value to set.- Returns:
- the SiteContainerProperties object itself.
-
authType
Get the authType property: Auth Type.- Returns:
- the authType value.
-
withAuthType
Set the authType property: Auth Type.- Parameters:
authType
- the authType value to set.- Returns:
- the SiteContainerProperties object itself.
-
username
Get the username property: User Name.- Returns:
- the username value.
-
withUsername
Set the username property: User Name.- Parameters:
username
- the username value to set.- Returns:
- the SiteContainerProperties object itself.
-
passwordSecret
Get the passwordSecret property: Password Secret.- Returns:
- the passwordSecret value.
-
withPasswordSecret
Set the passwordSecret property: Password Secret.- Parameters:
passwordSecret
- the passwordSecret value to set.- Returns:
- the SiteContainerProperties object itself.
-
userManagedIdentityClientId
Get the userManagedIdentityClientId property: UserManagedIdentity ClientId.- Returns:
- the userManagedIdentityClientId value.
-
withUserManagedIdentityClientId
Set the userManagedIdentityClientId property: UserManagedIdentity ClientId.- Parameters:
userManagedIdentityClientId
- the userManagedIdentityClientId value to set.- Returns:
- the SiteContainerProperties object itself.
-
createdTime
Get the createdTime property: Created Time.- Returns:
- the createdTime value.
-
lastModifiedTime
Get the lastModifiedTime property: Last Modified Time.- Returns:
- the lastModifiedTime value.
-
volumeMounts
Get the volumeMounts property: List of volume mounts.- Returns:
- the volumeMounts value.
-
withVolumeMounts
Set the volumeMounts property: List of volume mounts.- Parameters:
volumeMounts
- the volumeMounts value to set.- Returns:
- the SiteContainerProperties object itself.
-
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
- Specified by:
toJson
in interfacecom.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.
-