com.azure.resourcemanager.network.fluent.models.HubIpConfigurationInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-network Show documentation
Show all versions of azure-resourcemanager-network Show documentation
This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import com.azure.resourcemanager.network.models.IpAllocationMethod;
import com.azure.resourcemanager.network.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* IpConfigurations.
*/
@Fluent
public final class HubIpConfigurationInner extends SubResource {
/*
* The properties of the Virtual Hub IPConfigurations.
*/
@JsonProperty(value = "properties")
private HubIpConfigurationPropertiesFormatInner innerProperties;
/*
* Name of the Ip Configuration.
*/
@JsonProperty(value = "name")
private String name;
/*
* A unique read-only string that changes whenever the resource is updated.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
/*
* Ipconfiguration type.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
* Creates an instance of HubIpConfigurationInner class.
*/
public HubIpConfigurationInner() {
}
/**
* Get the innerProperties property: The properties of the Virtual Hub IPConfigurations.
*
* @return the innerProperties value.
*/
private HubIpConfigurationPropertiesFormatInner innerProperties() {
return this.innerProperties;
}
/**
* Get the name property: Name of the Ip Configuration.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Set the name property: Name of the Ip Configuration.
*
* @param name the name value to set.
* @return the HubIpConfigurationInner object itself.
*/
public HubIpConfigurationInner withName(String name) {
this.name = name;
return this;
}
/**
* Get the etag property: A unique read-only string that changes whenever the resource is updated.
*
* @return the etag value.
*/
public String etag() {
return this.etag;
}
/**
* Get the type property: Ipconfiguration type.
*
* @return the type value.
*/
public String type() {
return this.type;
}
/**
* {@inheritDoc}
*/
@Override
public HubIpConfigurationInner withId(String id) {
super.withId(id);
return this;
}
/**
* Get the privateIpAddress property: The private IP address of the IP configuration.
*
* @return the privateIpAddress value.
*/
public String privateIpAddress() {
return this.innerProperties() == null ? null : this.innerProperties().privateIpAddress();
}
/**
* Set the privateIpAddress property: The private IP address of the IP configuration.
*
* @param privateIpAddress the privateIpAddress value to set.
* @return the HubIpConfigurationInner object itself.
*/
public HubIpConfigurationInner withPrivateIpAddress(String privateIpAddress) {
if (this.innerProperties() == null) {
this.innerProperties = new HubIpConfigurationPropertiesFormatInner();
}
this.innerProperties().withPrivateIpAddress(privateIpAddress);
return this;
}
/**
* Get the privateIpAllocationMethod property: The private IP address allocation method.
*
* @return the privateIpAllocationMethod value.
*/
public IpAllocationMethod privateIpAllocationMethod() {
return this.innerProperties() == null ? null : this.innerProperties().privateIpAllocationMethod();
}
/**
* Set the privateIpAllocationMethod property: The private IP address allocation method.
*
* @param privateIpAllocationMethod the privateIpAllocationMethod value to set.
* @return the HubIpConfigurationInner object itself.
*/
public HubIpConfigurationInner withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) {
if (this.innerProperties() == null) {
this.innerProperties = new HubIpConfigurationPropertiesFormatInner();
}
this.innerProperties().withPrivateIpAllocationMethod(privateIpAllocationMethod);
return this;
}
/**
* Get the subnet property: The reference to the subnet resource.
*
* @return the subnet value.
*/
public SubnetInner subnet() {
return this.innerProperties() == null ? null : this.innerProperties().subnet();
}
/**
* Set the subnet property: The reference to the subnet resource.
*
* @param subnet the subnet value to set.
* @return the HubIpConfigurationInner object itself.
*/
public HubIpConfigurationInner withSubnet(SubnetInner subnet) {
if (this.innerProperties() == null) {
this.innerProperties = new HubIpConfigurationPropertiesFormatInner();
}
this.innerProperties().withSubnet(subnet);
return this;
}
/**
* Get the publicIpAddress property: The reference to the public IP resource.
*
* @return the publicIpAddress value.
*/
public PublicIpAddressInner publicIpAddress() {
return this.innerProperties() == null ? null : this.innerProperties().publicIpAddress();
}
/**
* Set the publicIpAddress property: The reference to the public IP resource.
*
* @param publicIpAddress the publicIpAddress value to set.
* @return the HubIpConfigurationInner object itself.
*/
public HubIpConfigurationInner withPublicIpAddress(PublicIpAddressInner publicIpAddress) {
if (this.innerProperties() == null) {
this.innerProperties = new HubIpConfigurationPropertiesFormatInner();
}
this.innerProperties().withPublicIpAddress(publicIpAddress);
return this;
}
/**
* Get the provisioningState property: The provisioning state of the IP configuration resource.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}