
com.azure.resourcemanager.eventgrid.fluent.models.HybridConnectionEventSubscriptionDestinationProperties 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.DeliveryAttributeMapping;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* The properties for a hybrid connection destination.
*/
@Fluent
public final class HybridConnectionEventSubscriptionDestinationProperties {
/*
* The Azure Resource ID of an hybrid connection that is the destination of an event subscription.
*/
@JsonProperty(value = "resourceId")
private String resourceId;
/*
* Delivery attribute details.
*/
@JsonProperty(value = "deliveryAttributeMappings")
private List deliveryAttributeMappings;
/**
* Creates an instance of HybridConnectionEventSubscriptionDestinationProperties class.
*/
public HybridConnectionEventSubscriptionDestinationProperties() {
}
/**
* Get the resourceId property: The Azure Resource ID of an hybrid connection that is the destination of an event
* subscription.
*
* @return the resourceId value.
*/
public String resourceId() {
return this.resourceId;
}
/**
* Set the resourceId property: The Azure Resource ID of an hybrid connection that is the destination of an event
* subscription.
*
* @param resourceId the resourceId value to set.
* @return the HybridConnectionEventSubscriptionDestinationProperties object itself.
*/
public HybridConnectionEventSubscriptionDestinationProperties withResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* Get the deliveryAttributeMappings property: Delivery attribute details.
*
* @return the deliveryAttributeMappings value.
*/
public List deliveryAttributeMappings() {
return this.deliveryAttributeMappings;
}
/**
* Set the deliveryAttributeMappings property: Delivery attribute details.
*
* @param deliveryAttributeMappings the deliveryAttributeMappings value to set.
* @return the HybridConnectionEventSubscriptionDestinationProperties object itself.
*/
public HybridConnectionEventSubscriptionDestinationProperties
withDeliveryAttributeMappings(List deliveryAttributeMappings) {
this.deliveryAttributeMappings = deliveryAttributeMappings;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (deliveryAttributeMappings() != null) {
deliveryAttributeMappings().forEach(e -> e.validate());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy