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

com.azure.resourcemanager.eventgrid.models.ResourceAssociation Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2021-10-preview.

There is a newer version: 1.2.0-beta.7
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.eventgrid.models;

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

/**
 * Nsp resource association.
 */
@Fluent
public final class ResourceAssociation {
    /*
     * Association name
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Network security perimeter access mode.
     */
    @JsonProperty(value = "accessMode")
    private NetworkSecurityPerimeterAssociationAccessMode accessMode;

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

    /**
     * Get the name property: Association name.
     * 
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Association name.
     * 
     * @param name the name value to set.
     * @return the ResourceAssociation object itself.
     */
    public ResourceAssociation withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the accessMode property: Network security perimeter access mode.
     * 
     * @return the accessMode value.
     */
    public NetworkSecurityPerimeterAssociationAccessMode accessMode() {
        return this.accessMode;
    }

    /**
     * Set the accessMode property: Network security perimeter access mode.
     * 
     * @param accessMode the accessMode value to set.
     * @return the ResourceAssociation object itself.
     */
    public ResourceAssociation withAccessMode(NetworkSecurityPerimeterAssociationAccessMode accessMode) {
        this.accessMode = accessMode;
        return this;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy