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