All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.hybridcompute.models.IpAddress Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2024-07.

There is a newer version: 1.1.0-beta.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hybridcompute.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Describes properties of the IP address.
 */
@Fluent
public final class IpAddress {
    /*
     * Represents the IP Address.
     */
    @JsonProperty(value = "address")
    private String address;

    /*
     * Represents the Ip Address Version.
     */
    @JsonProperty(value = "ipAddressVersion")
    private String ipAddressVersion;

    /*
     * The subnet to which this IP address belongs.
     */
    @JsonProperty(value = "subnet", access = JsonProperty.Access.WRITE_ONLY)
    private Subnet subnet;

    /**
     * Creates an instance of IpAddress class.
     */
    public IpAddress() {
    }

    /**
     * Get the address property: Represents the IP Address.
     * 
     * @return the address value.
     */
    public String address() {
        return this.address;
    }

    /**
     * Set the address property: Represents the IP Address.
     * 
     * @param address the address value to set.
     * @return the IpAddress object itself.
     */
    public IpAddress withAddress(String address) {
        this.address = address;
        return this;
    }

    /**
     * Get the ipAddressVersion property: Represents the Ip Address Version.
     * 
     * @return the ipAddressVersion value.
     */
    public String ipAddressVersion() {
        return this.ipAddressVersion;
    }

    /**
     * Set the ipAddressVersion property: Represents the Ip Address Version.
     * 
     * @param ipAddressVersion the ipAddressVersion value to set.
     * @return the IpAddress object itself.
     */
    public IpAddress withIpAddressVersion(String ipAddressVersion) {
        this.ipAddressVersion = ipAddressVersion;
        return this;
    }

    /**
     * Get the subnet property: The subnet to which this IP address belongs.
     * 
     * @return the subnet value.
     */
    public Subnet subnet() {
        return this.subnet;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (subnet() != null) {
            subnet().validate();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy