Class BastionHostInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.BastionHostInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class BastionHostInner
extends com.azure.core.management.Resource
Bastion Host resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the disableCopyPaste property: Enable/Disable Copy/Paste feature of the Bastion Host resource.dnsName()Get the dnsName property: FQDN for the endpoint on which bastion host is accessible.Get the enableFileCopy property: Enable/Disable File Copy feature of the Bastion Host resource.Get the enableIpConnect property: Enable/Disable IP Connect feature of the Bastion Host resource.Get the enableKerberos property: Enable/Disable Kerberos feature of the Bastion Host resource.Get the enablePrivateOnlyBastion property: Enable/Disable Private Only feature of the Bastion Host resource.Get the enableSessionRecording property: Enable/Disable Session Recording feature of the Bastion Host resource.Get the enableShareableLink property: Enable/Disable Shareable Link of the Bastion Host resource.Get the enableTunneling property: Enable/Disable Tunneling feature of the Bastion Host resource.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static BastionHostInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BastionHostInner from the JsonReader.id()Get the id property: Resource ID.Get the ipConfigurations property: IP configuration of the Bastion Host resource.name()Get the name property: The name of the resource.Get the networkAcls property: The networkAcls property.Get the provisioningState property: The provisioning state of the bastion host resource.Get the scaleUnits property: The scale units for the Bastion Host resource.sku()Get the sku property: The sku of this Bastion Host.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.com.azure.core.management.SubResourceGet the virtualNetwork property: Reference to an existing virtual network required for Developer Bastion Host only.withDisableCopyPaste(Boolean disableCopyPaste) Set the disableCopyPaste property: Enable/Disable Copy/Paste feature of the Bastion Host resource.withDnsName(String dnsName) Set the dnsName property: FQDN for the endpoint on which bastion host is accessible.withEnableFileCopy(Boolean enableFileCopy) Set the enableFileCopy property: Enable/Disable File Copy feature of the Bastion Host resource.withEnableIpConnect(Boolean enableIpConnect) Set the enableIpConnect property: Enable/Disable IP Connect feature of the Bastion Host resource.withEnableKerberos(Boolean enableKerberos) Set the enableKerberos property: Enable/Disable Kerberos feature of the Bastion Host resource.withEnablePrivateOnlyBastion(Boolean enablePrivateOnlyBastion) Set the enablePrivateOnlyBastion property: Enable/Disable Private Only feature of the Bastion Host resource.withEnableSessionRecording(Boolean enableSessionRecording) Set the enableSessionRecording property: Enable/Disable Session Recording feature of the Bastion Host resource.withEnableShareableLink(Boolean enableShareableLink) Set the enableShareableLink property: Enable/Disable Shareable Link of the Bastion Host resource.withEnableTunneling(Boolean enableTunneling) Set the enableTunneling property: Enable/Disable Tunneling feature of the Bastion Host resource.Set the id property: Resource ID.withIpConfigurations(List<BastionHostIpConfiguration> ipConfigurations) Set the ipConfigurations property: IP configuration of the Bastion Host resource.withLocation(String location) withNetworkAcls(BastionHostPropertiesFormatNetworkAcls networkAcls) Set the networkAcls property: The networkAcls property.withScaleUnits(Integer scaleUnits) Set the scaleUnits property: The scale units for the Bastion Host resource.Set the sku property: The sku of this Bastion Host.withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork) Set the virtualNetwork property: Reference to an existing virtual network required for Developer Bastion Host only.Set the zones property: A list of availability zones denoting where the resource needs to come from.zones()Get the zones property: A list of availability zones denoting where the resource needs to come from.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.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
-
BastionHostInner
public BastionHostInner()Creates an instance of BastionHostInner class.
-
-
Method Details
-
zones
Get the zones property: A list of availability zones denoting where the resource needs to come from.- Returns:
- the zones value.
-
withZones
Set the zones property: A list of availability zones denoting where the resource needs to come from.- Parameters:
zones- the zones value to set.- Returns:
- the BastionHostInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
sku
Get the sku property: The sku of this Bastion Host.- Returns:
- the sku value.
-
withSku
Set the sku property: The sku of this Bastion Host.- Parameters:
sku- the sku value to set.- Returns:
- the BastionHostInner object itself.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the BastionHostInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
ipConfigurations
Get the ipConfigurations property: IP configuration of the Bastion Host resource.- Returns:
- the ipConfigurations value.
-
withIpConfigurations
Set the ipConfigurations property: IP configuration of the Bastion Host resource.- Parameters:
ipConfigurations- the ipConfigurations value to set.- Returns:
- the BastionHostInner object itself.
-
dnsName
Get the dnsName property: FQDN for the endpoint on which bastion host is accessible.- Returns:
- the dnsName value.
-
withDnsName
Set the dnsName property: FQDN for the endpoint on which bastion host is accessible.- Parameters:
dnsName- the dnsName value to set.- Returns:
- the BastionHostInner object itself.
-
virtualNetwork
public com.azure.core.management.SubResource virtualNetwork()Get the virtualNetwork property: Reference to an existing virtual network required for Developer Bastion Host only.- Returns:
- the virtualNetwork value.
-
withVirtualNetwork
Set the virtualNetwork property: Reference to an existing virtual network required for Developer Bastion Host only.- Parameters:
virtualNetwork- the virtualNetwork value to set.- Returns:
- the BastionHostInner object itself.
-
networkAcls
Get the networkAcls property: The networkAcls property.- Returns:
- the networkAcls value.
-
withNetworkAcls
Set the networkAcls property: The networkAcls property.- Parameters:
networkAcls- the networkAcls value to set.- Returns:
- the BastionHostInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the bastion host resource.- Returns:
- the provisioningState value.
-
scaleUnits
Get the scaleUnits property: The scale units for the Bastion Host resource.- Returns:
- the scaleUnits value.
-
withScaleUnits
Set the scaleUnits property: The scale units for the Bastion Host resource.- Parameters:
scaleUnits- the scaleUnits value to set.- Returns:
- the BastionHostInner object itself.
-
disableCopyPaste
Get the disableCopyPaste property: Enable/Disable Copy/Paste feature of the Bastion Host resource.- Returns:
- the disableCopyPaste value.
-
withDisableCopyPaste
Set the disableCopyPaste property: Enable/Disable Copy/Paste feature of the Bastion Host resource.- Parameters:
disableCopyPaste- the disableCopyPaste value to set.- Returns:
- the BastionHostInner object itself.
-
enableFileCopy
Get the enableFileCopy property: Enable/Disable File Copy feature of the Bastion Host resource.- Returns:
- the enableFileCopy value.
-
withEnableFileCopy
Set the enableFileCopy property: Enable/Disable File Copy feature of the Bastion Host resource.- Parameters:
enableFileCopy- the enableFileCopy value to set.- Returns:
- the BastionHostInner object itself.
-
enableIpConnect
Get the enableIpConnect property: Enable/Disable IP Connect feature of the Bastion Host resource.- Returns:
- the enableIpConnect value.
-
withEnableIpConnect
Set the enableIpConnect property: Enable/Disable IP Connect feature of the Bastion Host resource.- Parameters:
enableIpConnect- the enableIpConnect value to set.- Returns:
- the BastionHostInner object itself.
-
enableTunneling
Get the enableTunneling property: Enable/Disable Tunneling feature of the Bastion Host resource.- Returns:
- the enableTunneling value.
-
withEnableTunneling
Set the enableTunneling property: Enable/Disable Tunneling feature of the Bastion Host resource.- Parameters:
enableTunneling- the enableTunneling value to set.- Returns:
- the BastionHostInner object itself.
-
enableKerberos
Get the enableKerberos property: Enable/Disable Kerberos feature of the Bastion Host resource.- Returns:
- the enableKerberos value.
-
withEnableKerberos
Set the enableKerberos property: Enable/Disable Kerberos feature of the Bastion Host resource.- Parameters:
enableKerberos- the enableKerberos value to set.- Returns:
- the BastionHostInner object itself.
-
enableSessionRecording
Get the enableSessionRecording property: Enable/Disable Session Recording feature of the Bastion Host resource.- Returns:
- the enableSessionRecording value.
-
withEnableSessionRecording
Set the enableSessionRecording property: Enable/Disable Session Recording feature of the Bastion Host resource.- Parameters:
enableSessionRecording- the enableSessionRecording value to set.- Returns:
- the BastionHostInner object itself.
-
enablePrivateOnlyBastion
Get the enablePrivateOnlyBastion property: Enable/Disable Private Only feature of the Bastion Host resource.- Returns:
- the enablePrivateOnlyBastion value.
-
withEnablePrivateOnlyBastion
Set the enablePrivateOnlyBastion property: Enable/Disable Private Only feature of the Bastion Host resource.- Parameters:
enablePrivateOnlyBastion- the enablePrivateOnlyBastion value to set.- Returns:
- the BastionHostInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of BastionHostInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BastionHostInner 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 BastionHostInner.
-