
com.azure.resourcemanager.eventgrid.fluent.models.TopicSharedAccessKeysInner 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.fasterxml.jackson.annotation.JsonProperty;
/**
* Shared access keys of the Topic.
*/
@Fluent
public final class TopicSharedAccessKeysInner {
/*
* Shared access key1 for the topic.
*/
@JsonProperty(value = "key1")
private String key1;
/*
* Shared access key2 for the topic.
*/
@JsonProperty(value = "key2")
private String key2;
/**
* Creates an instance of TopicSharedAccessKeysInner class.
*/
public TopicSharedAccessKeysInner() {
}
/**
* Get the key1 property: Shared access key1 for the topic.
*
* @return the key1 value.
*/
public String key1() {
return this.key1;
}
/**
* Set the key1 property: Shared access key1 for the topic.
*
* @param key1 the key1 value to set.
* @return the TopicSharedAccessKeysInner object itself.
*/
public TopicSharedAccessKeysInner withKey1(String key1) {
this.key1 = key1;
return this;
}
/**
* Get the key2 property: Shared access key2 for the topic.
*
* @return the key2 value.
*/
public String key2() {
return this.key2;
}
/**
* Set the key2 property: Shared access key2 for the topic.
*
* @param key2 the key2 value to set.
* @return the TopicSharedAccessKeysInner object itself.
*/
public TopicSharedAccessKeysInner withKey2(String key2) {
this.key2 = key2;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy