Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
* Information about the dead letter destination for an event subscription. To
* configure a deadletter destination, do not directly instantiate an object of
* this class. Instead, instantiate an object of a derived class. Currently,
* StorageBlobDeadLetterDestination is the only class that derives from this
* class.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "endpointType")
@JsonTypeName("DeadLetterDestination")
@JsonSubTypes({
@JsonSubTypes.Type(name = "StorageBlob", value = StorageBlobDeadLetterDestination.class)
})
public class DeadLetterDestination {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for EventDeliverySchema.
*/
public final class EventDeliverySchema extends ExpandableStringEnum<EventDeliverySchema> {
/** Static value EventGridSchema for EventDeliverySchema. */
public static final EventDeliverySchema EVENT_GRID_SCHEMA = fromString("EventGridSchema");

/** Static value InputEventSchema for EventDeliverySchema. */
public static final EventDeliverySchema INPUT_EVENT_SCHEMA = fromString("InputEventSchema");

/** Static value CloudEventV01Schema for EventDeliverySchema. */
public static final EventDeliverySchema CLOUD_EVENT_V01SCHEMA = fromString("CloudEventV01Schema");

/**
* Creates or finds a EventDeliverySchema from its string representation.
* @param name a name to look for
* @return the corresponding EventDeliverySchema
*/
@JsonCreator
public static EventDeliverySchema fromString(String name) {
return fromString(name, EventDeliverySchema.class);
}

/**
* @return known EventDeliverySchema values
*/
public static Collection<EventDeliverySchema> values() {
return values(EventDeliverySchema.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Information about the event hub destination for an event subscription.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "endpointType")
@JsonTypeName("EventHub")
@JsonFlatten
public class EventHubEventSubscriptionDestination extends EventSubscriptionDestination {
/**
* The Azure Resource Id that represents the endpoint of an Event Hub
* destination of an event subscription.
*/
@JsonProperty(value = "properties.resourceId")
private String resourceId;

/**
* Get the resourceId value.
*
* @return the resourceId value
*/
public String resourceId() {
return this.resourceId;
}

/**
* Set the resourceId value.
*
* @param resourceId the resourceId value to set
* @return the EventHubEventSubscriptionDestination object itself.
*/
public EventHubEventSubscriptionDestination withResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
* Information about the destination for an event subscription.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "endpointType")
@JsonTypeName("EventSubscriptionDestination")
@JsonSubTypes({
@JsonSubTypes.Type(name = "WebHook", value = WebHookEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "EventHub", value = EventHubEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "StorageQueue", value = StorageQueueEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "HybridConnection", value = HybridConnectionEventSubscriptionDestination.class)
})
public class EventSubscriptionDestination {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Filter for the Event Subscription.
*/
public class EventSubscriptionFilter {
/**
* An optional string to filter events for an event subscription based on a
* resource path prefix.
* The format of this depends on the publisher of the events.
* Wildcard characters are not supported in this path.
*/
@JsonProperty(value = "subjectBeginsWith")
private String subjectBeginsWith;

/**
* An optional string to filter events for an event subscription based on a
* resource path suffix.
* Wildcard characters are not supported in this path.
*/
@JsonProperty(value = "subjectEndsWith")
private String subjectEndsWith;

/**
* A list of applicable event types that need to be part of the event
* subscription.
* If it is desired to subscribe to all event types, the string "all" needs
* to be specified as an element in this list.
*/
@JsonProperty(value = "includedEventTypes")
private List<String> includedEventTypes;

/**
* Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the
* filter
* should be compared in a case sensitive manner.
*/
@JsonProperty(value = "isSubjectCaseSensitive")
private Boolean isSubjectCaseSensitive;

/**
* Get the subjectBeginsWith value.
*
* @return the subjectBeginsWith value
*/
public String subjectBeginsWith() {
return this.subjectBeginsWith;
}

/**
* Set the subjectBeginsWith value.
*
* @param subjectBeginsWith the subjectBeginsWith value to set
* @return the EventSubscriptionFilter object itself.
*/
public EventSubscriptionFilter withSubjectBeginsWith(String subjectBeginsWith) {
this.subjectBeginsWith = subjectBeginsWith;
return this;
}

/**
* Get the subjectEndsWith value.
*
* @return the subjectEndsWith value
*/
public String subjectEndsWith() {
return this.subjectEndsWith;
}

/**
* Set the subjectEndsWith value.
*
* @param subjectEndsWith the subjectEndsWith value to set
* @return the EventSubscriptionFilter object itself.
*/
public EventSubscriptionFilter withSubjectEndsWith(String subjectEndsWith) {
this.subjectEndsWith = subjectEndsWith;
return this;
}

/**
* Get the includedEventTypes value.
*
* @return the includedEventTypes value
*/
public List<String> includedEventTypes() {
return this.includedEventTypes;
}

/**
* Set the includedEventTypes value.
*
* @param includedEventTypes the includedEventTypes value to set
* @return the EventSubscriptionFilter object itself.
*/
public EventSubscriptionFilter withIncludedEventTypes(List<String> includedEventTypes) {
this.includedEventTypes = includedEventTypes;
return this;
}

/**
* Get the isSubjectCaseSensitive value.
*
* @return the isSubjectCaseSensitive value
*/
public Boolean isSubjectCaseSensitive() {
return this.isSubjectCaseSensitive;
}

/**
* Set the isSubjectCaseSensitive value.
*
* @param isSubjectCaseSensitive the isSubjectCaseSensitive value to set
* @return the EventSubscriptionFilter object itself.
*/
public EventSubscriptionFilter withIsSubjectCaseSensitive(Boolean isSubjectCaseSensitive) {
this.isSubjectCaseSensitive = isSubjectCaseSensitive;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for EventSubscriptionProvisioningState.
*/
public final class EventSubscriptionProvisioningState extends ExpandableStringEnum<EventSubscriptionProvisioningState> {
/** Static value Creating for EventSubscriptionProvisioningState. */
public static final EventSubscriptionProvisioningState CREATING = fromString("Creating");

/** Static value Updating for EventSubscriptionProvisioningState. */
public static final EventSubscriptionProvisioningState UPDATING = fromString("Updating");

/** Static value Deleting for EventSubscriptionProvisioningState. */
public static final EventSubscriptionProvisioningState DELETING = fromString("Deleting");

/** Static value Succeeded for EventSubscriptionProvisioningState. */
public static final EventSubscriptionProvisioningState SUCCEEDED = fromString("Succeeded");

/** Static value Canceled for EventSubscriptionProvisioningState. */
public static final EventSubscriptionProvisioningState CANCELED = fromString("Canceled");

/** Static value Failed for EventSubscriptionProvisioningState. */
public static final EventSubscriptionProvisioningState FAILED = fromString("Failed");

/** Static value AwaitingManualAction for EventSubscriptionProvisioningState. */
public static final EventSubscriptionProvisioningState AWAITING_MANUAL_ACTION = fromString("AwaitingManualAction");

/**
* Creates or finds a EventSubscriptionProvisioningState from its string representation.
* @param name a name to look for
* @return the corresponding EventSubscriptionProvisioningState
*/
@JsonCreator
public static EventSubscriptionProvisioningState fromString(String name) {
return fromString(name, EventSubscriptionProvisioningState.class);
}

/**
* @return known EventSubscriptionProvisioningState values
*/
public static Collection<EventSubscriptionProvisioningState> values() {
return values(EventSubscriptionProvisioningState.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Information about the HybridConnection destination for an event
* subscription.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "endpointType")
@JsonTypeName("HybridConnection")
@JsonFlatten
public class HybridConnectionEventSubscriptionDestination extends EventSubscriptionDestination {
/**
* The Azure Resource ID of an hybrid connection that is the destination of
* an event subscription.
*/
@JsonProperty(value = "properties.resourceId")
private String resourceId;

/**
* Get the resourceId value.
*
* @return the resourceId value
*/
public String resourceId() {
return this.resourceId;
}

/**
* Set the resourceId value.
*
* @param resourceId the resourceId value to set
* @return the HybridConnectionEventSubscriptionDestination object itself.
*/
public HybridConnectionEventSubscriptionDestination withResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}

}
Loading