
com.azure.resourcemanager.eventgrid.models.StaticRoutingEnrichment 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.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeId;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Static routing enrichment details.
*/
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
property = "valueType",
defaultImpl = StaticRoutingEnrichment.class,
visible = true)
@JsonTypeName("StaticRoutingEnrichment")
@JsonSubTypes({ @JsonSubTypes.Type(name = "String", value = StaticStringRoutingEnrichment.class) })
@Fluent
public class StaticRoutingEnrichment {
/*
* Static routing enrichment value type. For e.g. this property value can be 'String'.
*/
@JsonTypeId
@JsonProperty(value = "valueType", required = true)
private StaticRoutingEnrichmentType valueType;
/*
* Static routing enrichment key.
*/
@JsonProperty(value = "key")
private String key;
/**
* Creates an instance of StaticRoutingEnrichment class.
*/
public StaticRoutingEnrichment() {
this.valueType = StaticRoutingEnrichmentType.fromString("StaticRoutingEnrichment");
}
/**
* Get the valueType property: Static routing enrichment value type. For e.g. this property value can be 'String'.
*
* @return the valueType value.
*/
public StaticRoutingEnrichmentType valueType() {
return this.valueType;
}
/**
* Get the key property: Static routing enrichment key.
*
* @return the key value.
*/
public String key() {
return this.key;
}
/**
* Set the key property: Static routing enrichment key.
*
* @param key the key value to set.
* @return the StaticRoutingEnrichment object itself.
*/
public StaticRoutingEnrichment withKey(String key) {
this.key = key;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy