Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
IP configuration of an Bastion Host.
/** * IP configuration of an Bastion Host. */
@JsonFlatten public class BastionHostIPConfiguration extends SubResource {
Reference of the subnet resource.
/** * Reference of the subnet resource. */
@JsonProperty(value = "properties.subnet", required = true) private SubResource subnet;
Reference of the PublicIP resource.
/** * Reference of the PublicIP resource. */
@JsonProperty(value = "properties.publicIPAddress", required = true) private SubResource publicIPAddress;
The provisioning state of the bastion host IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/** * The provisioning state of the bastion host IP configuration resource. * Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
Private IP allocation method. Possible values include: 'Static', 'Dynamic'.
/** * Private IP allocation method. Possible values include: 'Static', * 'Dynamic'. */
@JsonProperty(value = "properties.privateIPAllocationMethod") private IPAllocationMethod privateIPAllocationMethod;
Name of the resource that is unique within a resource group. This name can be used to access the resource.
/** * Name of the resource that is unique within a resource group. This name * can be used to access the resource. */
@JsonProperty(value = "name") private String name;
A unique read-only string that changes whenever the resource is updated.
/** * A unique read-only string that changes whenever the resource is updated. */
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag;
Ip configuration type.
/** * Ip configuration type. */
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type;
Get reference of the subnet resource.
Returns:the subnet value
/** * Get reference of the subnet resource. * * @return the subnet value */
public SubResource subnet() { return this.subnet; }
Set reference of the subnet resource.
Params:
  • subnet – the subnet value to set
Returns:the BastionHostIPConfiguration object itself.
/** * Set reference of the subnet resource. * * @param subnet the subnet value to set * @return the BastionHostIPConfiguration object itself. */
public BastionHostIPConfiguration withSubnet(SubResource subnet) { this.subnet = subnet; return this; }
Get reference of the PublicIP resource.
Returns:the publicIPAddress value
/** * Get reference of the PublicIP resource. * * @return the publicIPAddress value */
public SubResource publicIPAddress() { return this.publicIPAddress; }
Set reference of the PublicIP resource.
Params:
  • publicIPAddress – the publicIPAddress value to set
Returns:the BastionHostIPConfiguration object itself.
/** * Set reference of the PublicIP resource. * * @param publicIPAddress the publicIPAddress value to set * @return the BastionHostIPConfiguration object itself. */
public BastionHostIPConfiguration withPublicIPAddress(SubResource publicIPAddress) { this.publicIPAddress = publicIPAddress; return this; }
Get the provisioning state of the bastion host IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns:the provisioningState value
/** * Get the provisioning state of the bastion host IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get private IP allocation method. Possible values include: 'Static', 'Dynamic'.
Returns:the privateIPAllocationMethod value
/** * Get private IP allocation method. Possible values include: 'Static', 'Dynamic'. * * @return the privateIPAllocationMethod value */
public IPAllocationMethod privateIPAllocationMethod() { return this.privateIPAllocationMethod; }
Set private IP allocation method. Possible values include: 'Static', 'Dynamic'.
Params:
  • privateIPAllocationMethod – the privateIPAllocationMethod value to set
Returns:the BastionHostIPConfiguration object itself.
/** * Set private IP allocation method. Possible values include: 'Static', 'Dynamic'. * * @param privateIPAllocationMethod the privateIPAllocationMethod value to set * @return the BastionHostIPConfiguration object itself. */
public BastionHostIPConfiguration withPrivateIPAllocationMethod(IPAllocationMethod privateIPAllocationMethod) { this.privateIPAllocationMethod = privateIPAllocationMethod; return this; }
Get name of the resource that is unique within a resource group. This name can be used to access the resource.
Returns:the name value
/** * Get name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */
public String name() { return this.name; }
Set name of the resource that is unique within a resource group. This name can be used to access the resource.
Params:
  • name – the name value to set
Returns:the BastionHostIPConfiguration object itself.
/** * Set name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the BastionHostIPConfiguration object itself. */
public BastionHostIPConfiguration withName(String name) { this.name = name; return this; }
Get a unique read-only string that changes whenever the resource is updated.
Returns:the etag value
/** * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */
public String etag() { return this.etag; }
Get ip configuration type.
Returns:the type value
/** * Get ip configuration type. * * @return the type value */
public String type() { return this.type; } }