com.pulumi.alicloud.eci.outputs.GetContainerGroupsGroupEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.eci.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetContainerGroupsGroupEvent {
/**
* @return The number of events.
*
*/
private Integer count;
/**
* @return The time when the event started.
*
*/
private String firstTimestamp;
/**
* @return The time when the event ended.
*
*/
private String lastTimestamp;
/**
* @return The content of the event.
*
*/
private String message;
/**
* @return The name of the object to which the event belongs.
*
*/
private String name;
/**
* @return The name of the event.
*
*/
private String reason;
/**
* @return The type of the event. Valid values: Normal and Warning.
*
*/
private String type;
private GetContainerGroupsGroupEvent() {}
/**
* @return The number of events.
*
*/
public Integer count() {
return this.count;
}
/**
* @return The time when the event started.
*
*/
public String firstTimestamp() {
return this.firstTimestamp;
}
/**
* @return The time when the event ended.
*
*/
public String lastTimestamp() {
return this.lastTimestamp;
}
/**
* @return The content of the event.
*
*/
public String message() {
return this.message;
}
/**
* @return The name of the object to which the event belongs.
*
*/
public String name() {
return this.name;
}
/**
* @return The name of the event.
*
*/
public String reason() {
return this.reason;
}
/**
* @return The type of the event. Valid values: Normal and Warning.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetContainerGroupsGroupEvent defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer count;
private String firstTimestamp;
private String lastTimestamp;
private String message;
private String name;
private String reason;
private String type;
public Builder() {}
public Builder(GetContainerGroupsGroupEvent defaults) {
Objects.requireNonNull(defaults);
this.count = defaults.count;
this.firstTimestamp = defaults.firstTimestamp;
this.lastTimestamp = defaults.lastTimestamp;
this.message = defaults.message;
this.name = defaults.name;
this.reason = defaults.reason;
this.type = defaults.type;
}
@CustomType.Setter
public Builder count(Integer count) {
if (count == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupEvent", "count");
}
this.count = count;
return this;
}
@CustomType.Setter
public Builder firstTimestamp(String firstTimestamp) {
if (firstTimestamp == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupEvent", "firstTimestamp");
}
this.firstTimestamp = firstTimestamp;
return this;
}
@CustomType.Setter
public Builder lastTimestamp(String lastTimestamp) {
if (lastTimestamp == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupEvent", "lastTimestamp");
}
this.lastTimestamp = lastTimestamp;
return this;
}
@CustomType.Setter
public Builder message(String message) {
if (message == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupEvent", "message");
}
this.message = message;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupEvent", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder reason(String reason) {
if (reason == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupEvent", "reason");
}
this.reason = reason;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupEvent", "type");
}
this.type = type;
return this;
}
public GetContainerGroupsGroupEvent build() {
final var _resultValue = new GetContainerGroupsGroupEvent();
_resultValue.count = count;
_resultValue.firstTimestamp = firstTimestamp;
_resultValue.lastTimestamp = lastTimestamp;
_resultValue.message = message;
_resultValue.name = name;
_resultValue.reason = reason;
_resultValue.type = type;
return _resultValue;
}
}
}