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>
Container of a site.
-
Constructor Summary
Constructors -
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 SiteContainerInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SiteContainerInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.image()Get the image property: Image Name.Get the inheritAppSettingsAndConnectionStrings property: <code>true</code> if all AppSettings and ConnectionStrings have to be passed to the container as environment variables; <code>false</code> otherwise.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.name()Get the name property: The name of the resource.Get the passwordSecret property: Password Secret.Get the startUpCommand property: StartUp Command.Get the targetPort property: Target Port.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the userManagedIdentityClientId property: UserManagedIdentity ClientId.username()Get the username property: User Name.voidvalidate()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.withInheritAppSettingsAndConnectionStrings(Boolean inheritAppSettingsAndConnectionStrings) Set the inheritAppSettingsAndConnectionStrings property: <code>true</code> if all AppSettings and ConnectionStrings have to be passed to the container as environment variables; <code>false</code> otherwise.withIsMain(Boolean isMain) Set the isMain property: <code>true</code> if the container is the main site container; <code>false</code> otherwise.Set the kind property: Kind of resource.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 ProxyOnlyResource
kindMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SiteContainerInner
public SiteContainerInner()Creates an instance of SiteContainerInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyOnlyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classProxyOnlyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyOnlyResource- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
image
-
withImage
Set the image property: Image Name.- Parameters:
image- the image value to set.- Returns:
- the SiteContainerInner object itself.
-
targetPort
-
withTargetPort
Set the targetPort property: Target Port.- Parameters:
targetPort- the targetPort value to set.- Returns:
- the SiteContainerInner object itself.
-
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 SiteContainerInner 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 SiteContainerInner object itself.
-
authType
-
withAuthType
Set the authType property: Auth Type.- Parameters:
authType- the authType value to set.- Returns:
- the SiteContainerInner object itself.
-
username
-
withUsername
Set the username property: User Name.- Parameters:
username- the username value to set.- Returns:
- the SiteContainerInner 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 SiteContainerInner 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 SiteContainerInner 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 SiteContainerInner object itself.
-
inheritAppSettingsAndConnectionStrings
Get the inheritAppSettingsAndConnectionStrings property: <code>true</code> if all AppSettings and ConnectionStrings have to be passed to the container as environment variables; <code>false</code> otherwise.- Returns:
- the inheritAppSettingsAndConnectionStrings value.
-
withInheritAppSettingsAndConnectionStrings
public SiteContainerInner withInheritAppSettingsAndConnectionStrings(Boolean inheritAppSettingsAndConnectionStrings) Set the inheritAppSettingsAndConnectionStrings property: <code>true</code> if all AppSettings and ConnectionStrings have to be passed to the container as environment variables; <code>false</code> otherwise.- Parameters:
inheritAppSettingsAndConnectionStrings- the inheritAppSettingsAndConnectionStrings value to set.- Returns:
- the SiteContainerInner object itself.
-
environmentVariables
Get the environmentVariables property: List of environment variables.- Returns:
- the environmentVariables value.
-
withEnvironmentVariables
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:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyOnlyResource- Throws:
IOException
-
fromJson
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.
-