com.microsoft.azure.eventgrid.models.ContainerRegistryEventData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-eventgrid Show documentation
Show all versions of azure-eventgrid Show documentation
This package contains Microsoft Azure EventGrid SDK.
/**
* 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.eventgrid.models;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The content of the event request message.
*/
public class ContainerRegistryEventData {
/**
* The event ID.
*/
@JsonProperty(value = "id")
private String id;
/**
* The time at which the event occurred.
*/
@JsonProperty(value = "timestamp")
private DateTime timestamp;
/**
* The action that encompasses the provided event.
*/
@JsonProperty(value = "action")
private String action;
/**
* The target of the event.
*/
@JsonProperty(value = "target")
private ContainerRegistryEventTarget target;
/**
* The request that generated the event.
*/
@JsonProperty(value = "request")
private ContainerRegistryEventRequest request;
/**
* The agent that initiated the event. For most situations, this could be
* from the authorization context of the request.
*/
@JsonProperty(value = "actor")
private ContainerRegistryEventActor actor;
/**
* The registry node that generated the event. Put differently, while the
* actor initiates the event, the source generates it.
*/
@JsonProperty(value = "source")
private ContainerRegistryEventSource source;
/**
* Get the event ID.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Set the event ID.
*
* @param id the id value to set
* @return the ContainerRegistryEventData object itself.
*/
public ContainerRegistryEventData withId(String id) {
this.id = id;
return this;
}
/**
* Get the time at which the event occurred.
*
* @return the timestamp value
*/
public DateTime timestamp() {
return this.timestamp;
}
/**
* Set the time at which the event occurred.
*
* @param timestamp the timestamp value to set
* @return the ContainerRegistryEventData object itself.
*/
public ContainerRegistryEventData withTimestamp(DateTime timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* Get the action that encompasses the provided event.
*
* @return the action value
*/
public String action() {
return this.action;
}
/**
* Set the action that encompasses the provided event.
*
* @param action the action value to set
* @return the ContainerRegistryEventData object itself.
*/
public ContainerRegistryEventData withAction(String action) {
this.action = action;
return this;
}
/**
* Get the target of the event.
*
* @return the target value
*/
public ContainerRegistryEventTarget target() {
return this.target;
}
/**
* Set the target of the event.
*
* @param target the target value to set
* @return the ContainerRegistryEventData object itself.
*/
public ContainerRegistryEventData withTarget(ContainerRegistryEventTarget target) {
this.target = target;
return this;
}
/**
* Get the request that generated the event.
*
* @return the request value
*/
public ContainerRegistryEventRequest request() {
return this.request;
}
/**
* Set the request that generated the event.
*
* @param request the request value to set
* @return the ContainerRegistryEventData object itself.
*/
public ContainerRegistryEventData withRequest(ContainerRegistryEventRequest request) {
this.request = request;
return this;
}
/**
* Get the agent that initiated the event. For most situations, this could be from the authorization context of the request.
*
* @return the actor value
*/
public ContainerRegistryEventActor actor() {
return this.actor;
}
/**
* Set the agent that initiated the event. For most situations, this could be from the authorization context of the request.
*
* @param actor the actor value to set
* @return the ContainerRegistryEventData object itself.
*/
public ContainerRegistryEventData withActor(ContainerRegistryEventActor actor) {
this.actor = actor;
return this;
}
/**
* Get the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
*
* @return the source value
*/
public ContainerRegistryEventSource source() {
return this.source;
}
/**
* Set the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
*
* @param source the source value to set
* @return the ContainerRegistryEventData object itself.
*/
public ContainerRegistryEventData withSource(ContainerRegistryEventSource source) {
this.source = source;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy