
com.azure.resourcemanager.eventgrid.fluent.models.PermissionBindingProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-eventgrid Show documentation
Show all versions of azure-resourcemanager-eventgrid Show documentation
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.
// 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.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.eventgrid.models.PermissionBindingProvisioningState;
import com.azure.resourcemanager.eventgrid.models.PermissionType;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The properties of permission binding.
*/
@Fluent
public final class PermissionBindingProperties {
/*
* Description for the Permission Binding resource.
*/
@JsonProperty(value = "description")
private String description;
/*
* The name of the Topic Space resource that the permission is bound to.
* The Topic space needs to be a resource under the same namespace the permission binding is a part of.
*/
@JsonProperty(value = "topicSpaceName")
private String topicSpaceName;
/*
* The allowed permission.
*/
@JsonProperty(value = "permission")
private PermissionType permission;
/*
* The name of the client group resource that the permission is bound to.
* The client group needs to be a resource under the same namespace the permission binding is a part of.
*/
@JsonProperty(value = "clientGroupName")
private String clientGroupName;
/*
* Provisioning state of the PermissionBinding resource.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PermissionBindingProvisioningState provisioningState;
/**
* Creates an instance of PermissionBindingProperties class.
*/
public PermissionBindingProperties() {
}
/**
* Get the description property: Description for the Permission Binding resource.
*
* @return the description value.
*/
public String description() {
return this.description;
}
/**
* Set the description property: Description for the Permission Binding resource.
*
* @param description the description value to set.
* @return the PermissionBindingProperties object itself.
*/
public PermissionBindingProperties withDescription(String description) {
this.description = description;
return this;
}
/**
* Get the topicSpaceName property: The name of the Topic Space resource that the permission is bound to.
* The Topic space needs to be a resource under the same namespace the permission binding is a part of.
*
* @return the topicSpaceName value.
*/
public String topicSpaceName() {
return this.topicSpaceName;
}
/**
* Set the topicSpaceName property: The name of the Topic Space resource that the permission is bound to.
* The Topic space needs to be a resource under the same namespace the permission binding is a part of.
*
* @param topicSpaceName the topicSpaceName value to set.
* @return the PermissionBindingProperties object itself.
*/
public PermissionBindingProperties withTopicSpaceName(String topicSpaceName) {
this.topicSpaceName = topicSpaceName;
return this;
}
/**
* Get the permission property: The allowed permission.
*
* @return the permission value.
*/
public PermissionType permission() {
return this.permission;
}
/**
* Set the permission property: The allowed permission.
*
* @param permission the permission value to set.
* @return the PermissionBindingProperties object itself.
*/
public PermissionBindingProperties withPermission(PermissionType permission) {
this.permission = permission;
return this;
}
/**
* Get the clientGroupName property: The name of the client group resource that the permission is bound to.
* The client group needs to be a resource under the same namespace the permission binding is a part of.
*
* @return the clientGroupName value.
*/
public String clientGroupName() {
return this.clientGroupName;
}
/**
* Set the clientGroupName property: The name of the client group resource that the permission is bound to.
* The client group needs to be a resource under the same namespace the permission binding is a part of.
*
* @param clientGroupName the clientGroupName value to set.
* @return the PermissionBindingProperties object itself.
*/
public PermissionBindingProperties withClientGroupName(String clientGroupName) {
this.clientGroupName = clientGroupName;
return this;
}
/**
* Get the provisioningState property: Provisioning state of the PermissionBinding resource.
*
* @return the provisioningState value.
*/
public PermissionBindingProvisioningState provisioningState() {
return this.provisioningState;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy