Skip to content
Merged
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,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,25 @@
/**
* 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)
})
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,53 @@
/**
* 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");

/**
* 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,121 @@
/**
* 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;

/**
* Information about an operation.
*/
public class OperationInfo {
/**
* Name of the provider.
*/
@JsonProperty(value = "provider")
private String provider;

/**
* Name of the resource type.
*/
@JsonProperty(value = "resource")
private String resource;

/**
* Name of the operation.
*/
@JsonProperty(value = "operation")
private String operation;

/**
* Description of the operation.
*/
@JsonProperty(value = "description")
private String description;

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

/**
* Set the provider value.
*
* @param provider the provider value to set
* @return the OperationInfo object itself.
*/
public OperationInfo withProvider(String provider) {
this.provider = provider;
return this;
}

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

/**
* Set the resource value.
*
* @param resource the resource value to set
* @return the OperationInfo object itself.
*/
public OperationInfo withResource(String resource) {
this.resource = resource;
return this;
}

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

/**
* Set the operation value.
*
* @param operation the operation value to set
* @return the OperationInfo object itself.
*/
public OperationInfo withOperation(String operation) {
this.operation = operation;
return this;
}

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

/**
* Set the description value.
*
* @param description the description value to set
* @return the OperationInfo object itself.
*/
public OperationInfo withDescription(String description) {
this.description = description;
return this;
}

}
Loading