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.
/**
* 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.containerregistry;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
The content of the event request message.
/**
* The content of the event request message.
*/
public class EventContent {
The event ID.
/**
* The event ID.
*/
@JsonProperty(value = "id")
private String id;
The time at which the event occurred.
/**
* The time at which the event occurred.
*/
@JsonProperty(value = "timestamp")
private DateTime timestamp;
The action that encompasses the provided event.
/**
* The action that encompasses the provided event.
*/
@JsonProperty(value = "action")
private String action;
The target of the event.
/**
* The target of the event.
*/
@JsonProperty(value = "target")
private Target target;
The request that generated the event.
/**
* The request that generated the event.
*/
@JsonProperty(value = "request")
private Request request;
The agent that initiated the event. For most situations, this could be
from the authorization context of the request.
/**
* The agent that initiated the event. For most situations, this could be
* from the authorization context of the request.
*/
@JsonProperty(value = "actor")
private Actor actor;
The registry node that generated the event. Put differently, while the
actor initiates the event, the source generates it.
/**
* The registry node that generated the event. Put differently, while the
* actor initiates the event, the source generates it.
*/
@JsonProperty(value = "source")
private Source source;
Get the event ID.
Returns: the id value
/**
* Get the event ID.
*
* @return the id value
*/
public String id() {
return this.id;
}
Set the event ID.
Params: - id – the id value to set
Returns: the EventContent object itself.
/**
* Set the event ID.
*
* @param id the id value to set
* @return the EventContent object itself.
*/
public EventContent withId(String id) {
this.id = id;
return this;
}
Get the time at which the event occurred.
Returns: the timestamp value
/**
* 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.
Params: - timestamp – the timestamp value to set
Returns: the EventContent object itself.
/**
* Set the time at which the event occurred.
*
* @param timestamp the timestamp value to set
* @return the EventContent object itself.
*/
public EventContent withTimestamp(DateTime timestamp) {
this.timestamp = timestamp;
return this;
}
Get the action that encompasses the provided event.
Returns: the action value
/**
* 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.
Params: - action – the action value to set
Returns: the EventContent object itself.
/**
* Set the action that encompasses the provided event.
*
* @param action the action value to set
* @return the EventContent object itself.
*/
public EventContent withAction(String action) {
this.action = action;
return this;
}
Get the target of the event.
Returns: the target value
/**
* Get the target of the event.
*
* @return the target value
*/
public Target target() {
return this.target;
}
Set the target of the event.
Params: - target – the target value to set
Returns: the EventContent object itself.
/**
* Set the target of the event.
*
* @param target the target value to set
* @return the EventContent object itself.
*/
public EventContent withTarget(Target target) {
this.target = target;
return this;
}
Get the request that generated the event.
Returns: the request value
/**
* Get the request that generated the event.
*
* @return the request value
*/
public Request request() {
return this.request;
}
Set the request that generated the event.
Params: - request – the request value to set
Returns: the EventContent object itself.
/**
* Set the request that generated the event.
*
* @param request the request value to set
* @return the EventContent object itself.
*/
public EventContent withRequest(Request 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.
Returns: the actor value
/**
* 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 Actor actor() {
return this.actor;
}
Set the agent that initiated the event. For most situations, this could be from the authorization context of the request.
Params: - actor – the actor value to set
Returns: the EventContent object itself.
/**
* 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 EventContent object itself.
*/
public EventContent withActor(Actor 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.
Returns: the source value
/**
* 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 Source source() {
return this.source;
}
Set the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
Params: - source – the source value to set
Returns: the EventContent object itself.
/**
* 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 EventContent object itself.
*/
public EventContent withSource(Source source) {
this.source = source;
return this;
}
}