com.pulumi.aws.cloudwatch.outputs.GetLogGroupResult Maven / Gradle / Ivy
// *** 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.aws.cloudwatch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
@CustomType
public final class GetLogGroupResult {
/**
* @return ARN of the Cloudwatch log group. Any `:*` suffix added by the API, denoting all CloudWatch Log Streams under the CloudWatch Log Group, is removed for greater compatibility with other AWS services that do not accept the suffix.
*
*/
private String arn;
/**
* @return Creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
*
*/
private Integer creationTime;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return ARN of the KMS Key to use when encrypting log data.
*
*/
private String kmsKeyId;
/**
* @return The log class of the log group.
*
*/
private String logGroupClass;
private String name;
/**
* @return Number of days log events retained in the specified log group.
*
*/
private Integer retentionInDays;
/**
* @return Map of tags to assign to the resource.
*
*/
private Map tags;
private GetLogGroupResult() {}
/**
* @return ARN of the Cloudwatch log group. Any `:*` suffix added by the API, denoting all CloudWatch Log Streams under the CloudWatch Log Group, is removed for greater compatibility with other AWS services that do not accept the suffix.
*
*/
public String arn() {
return this.arn;
}
/**
* @return Creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
*
*/
public Integer creationTime() {
return this.creationTime;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return ARN of the KMS Key to use when encrypting log data.
*
*/
public String kmsKeyId() {
return this.kmsKeyId;
}
/**
* @return The log class of the log group.
*
*/
public String logGroupClass() {
return this.logGroupClass;
}
public String name() {
return this.name;
}
/**
* @return Number of days log events retained in the specified log group.
*
*/
public Integer retentionInDays() {
return this.retentionInDays;
}
/**
* @return Map of tags to assign to the resource.
*
*/
public Map tags() {
return this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLogGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private Integer creationTime;
private String id;
private String kmsKeyId;
private String logGroupClass;
private String name;
private Integer retentionInDays;
private Map tags;
public Builder() {}
public Builder(GetLogGroupResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.creationTime = defaults.creationTime;
this.id = defaults.id;
this.kmsKeyId = defaults.kmsKeyId;
this.logGroupClass = defaults.logGroupClass;
this.name = defaults.name;
this.retentionInDays = defaults.retentionInDays;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetLogGroupResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder creationTime(Integer creationTime) {
if (creationTime == null) {
throw new MissingRequiredPropertyException("GetLogGroupResult", "creationTime");
}
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetLogGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kmsKeyId(String kmsKeyId) {
if (kmsKeyId == null) {
throw new MissingRequiredPropertyException("GetLogGroupResult", "kmsKeyId");
}
this.kmsKeyId = kmsKeyId;
return this;
}
@CustomType.Setter
public Builder logGroupClass(String logGroupClass) {
if (logGroupClass == null) {
throw new MissingRequiredPropertyException("GetLogGroupResult", "logGroupClass");
}
this.logGroupClass = logGroupClass;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetLogGroupResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder retentionInDays(Integer retentionInDays) {
if (retentionInDays == null) {
throw new MissingRequiredPropertyException("GetLogGroupResult", "retentionInDays");
}
this.retentionInDays = retentionInDays;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetLogGroupResult", "tags");
}
this.tags = tags;
return this;
}
public GetLogGroupResult build() {
final var _resultValue = new GetLogGroupResult();
_resultValue.arn = arn;
_resultValue.creationTime = creationTime;
_resultValue.id = id;
_resultValue.kmsKeyId = kmsKeyId;
_resultValue.logGroupClass = logGroupClass;
_resultValue.name = name;
_resultValue.retentionInDays = retentionInDays;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy