com.microsoft.azure.management.containerinstance.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-containerinstance Show documentation
Show all versions of azure-mgmt-containerinstance Show documentation
This package contains Microsoft Azure Container Instance SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-containerinstance is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.containerinstance;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A container group or container instance event.
*/
public class Event {
/**
* The count of the event.
*/
@JsonProperty(value = "count")
private Integer count;
/**
* The date-time of the earliest logged event.
*/
@JsonProperty(value = "firstTimestamp")
private DateTime firstTimestamp;
/**
* The date-time of the latest logged event.
*/
@JsonProperty(value = "lastTimestamp")
private DateTime lastTimestamp;
/**
* The event name.
*/
@JsonProperty(value = "name")
private String name;
/**
* The event message.
*/
@JsonProperty(value = "message")
private String message;
/**
* The event type.
*/
@JsonProperty(value = "type")
private String type;
/**
* Get the count of the event.
*
* @return the count value
*/
public Integer count() {
return this.count;
}
/**
* Set the count of the event.
*
* @param count the count value to set
* @return the Event object itself.
*/
public Event withCount(Integer count) {
this.count = count;
return this;
}
/**
* Get the date-time of the earliest logged event.
*
* @return the firstTimestamp value
*/
public DateTime firstTimestamp() {
return this.firstTimestamp;
}
/**
* Set the date-time of the earliest logged event.
*
* @param firstTimestamp the firstTimestamp value to set
* @return the Event object itself.
*/
public Event withFirstTimestamp(DateTime firstTimestamp) {
this.firstTimestamp = firstTimestamp;
return this;
}
/**
* Get the date-time of the latest logged event.
*
* @return the lastTimestamp value
*/
public DateTime lastTimestamp() {
return this.lastTimestamp;
}
/**
* Set the date-time of the latest logged event.
*
* @param lastTimestamp the lastTimestamp value to set
* @return the Event object itself.
*/
public Event withLastTimestamp(DateTime lastTimestamp) {
this.lastTimestamp = lastTimestamp;
return this;
}
/**
* Get the event name.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Set the event name.
*
* @param name the name value to set
* @return the Event object itself.
*/
public Event withName(String name) {
this.name = name;
return this;
}
/**
* Get the event message.
*
* @return the message value
*/
public String message() {
return this.message;
}
/**
* Set the event message.
*
* @param message the message value to set
* @return the Event object itself.
*/
public Event withMessage(String message) {
this.message = message;
return this;
}
/**
* Get the event type.
*
* @return the type value
*/
public String type() {
return this.type;
}
/**
* Set the event type.
*
* @param type the type value to set
* @return the Event object itself.
*/
public Event withType(String type) {
this.type = type;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy