Class BastionHostIpConfigurationPropertiesFormat

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

public final class BastionHostIpConfigurationPropertiesFormat extends Object implements com.azure.json.JsonSerializable<BastionHostIpConfigurationPropertiesFormat>
Properties of IP configuration of an Bastion Host.
  • Constructor Details

    • BastionHostIpConfigurationPropertiesFormat

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

    • subnet

      public com.azure.core.management.SubResource subnet()
      Get the subnet property: Reference of the subnet resource.
      Returns:
      the subnet value.
    • withSubnet

      public BastionHostIpConfigurationPropertiesFormat withSubnet(com.azure.core.management.SubResource subnet)
      Set the subnet property: Reference of the subnet resource.
      Parameters:
      subnet - the subnet value to set.
      Returns:
      the BastionHostIpConfigurationPropertiesFormat object itself.
    • publicIpAddress

      public com.azure.core.management.SubResource publicIpAddress()
      Get the publicIpAddress property: Reference of the PublicIP resource. Null for private only bastion.
      Returns:
      the publicIpAddress value.
    • withPublicIpAddress

      public BastionHostIpConfigurationPropertiesFormat withPublicIpAddress(com.azure.core.management.SubResource publicIpAddress)
      Set the publicIpAddress property: Reference of the PublicIP resource. Null for private only bastion.
      Parameters:
      publicIpAddress - the publicIpAddress value to set.
      Returns:
      the BastionHostIpConfigurationPropertiesFormat object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the bastion host IP configuration resource.
      Returns:
      the provisioningState value.
    • privateIpAllocationMethod

      public IpAllocationMethod privateIpAllocationMethod()
      Get the privateIpAllocationMethod property: Private IP allocation method.
      Returns:
      the privateIpAllocationMethod value.
    • withPrivateIpAllocationMethod

      public BastionHostIpConfigurationPropertiesFormat withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)
      Set the privateIpAllocationMethod property: Private IP allocation method.
      Parameters:
      privateIpAllocationMethod - the privateIpAllocationMethod value to set.
      Returns:
      the BastionHostIpConfigurationPropertiesFormat 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<BastionHostIpConfigurationPropertiesFormat>
      Throws:
      IOException
    • fromJson

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