commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.GetLogGroupFieldsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs-jvm Show documentation
Show all versions of cloudwatchlogs-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Logs
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetLogGroupFieldsRequest private constructor(builder: Builder) {
/**
* Specify either the name or ARN of the log group to view. If the log group is in a source account and you are using a monitoring account, you must specify the ARN.
*
* You must include either `logGroupIdentifier` or `logGroupName`, but not both.
*/
public val logGroupIdentifier: kotlin.String? = builder.logGroupIdentifier
/**
* The name of the log group to search.
*
* You must include either `logGroupIdentifier` or `logGroupName`, but not both.
*/
public val logGroupName: kotlin.String? = builder.logGroupName
/**
* The time to set as the center of the query. If you specify `time`, the 8 minutes before and 8 minutes after this time are searched. If you omit `time`, the most recent 15 minutes up to the current time are searched.
*
* The `time` value is specified as epoch time, which is the number of seconds since `January 1, 1970, 00:00:00 UTC`.
*/
public val time: kotlin.Long? = builder.time
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.GetLogGroupFieldsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLogGroupFieldsRequest(")
append("logGroupIdentifier=$logGroupIdentifier,")
append("logGroupName=$logGroupName,")
append("time=$time")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = logGroupIdentifier?.hashCode() ?: 0
result = 31 * result + (logGroupName?.hashCode() ?: 0)
result = 31 * result + (time?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as GetLogGroupFieldsRequest
if (logGroupIdentifier != other.logGroupIdentifier) return false
if (logGroupName != other.logGroupName) return false
if (time != other.time) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.GetLogGroupFieldsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specify either the name or ARN of the log group to view. If the log group is in a source account and you are using a monitoring account, you must specify the ARN.
*
* You must include either `logGroupIdentifier` or `logGroupName`, but not both.
*/
public var logGroupIdentifier: kotlin.String? = null
/**
* The name of the log group to search.
*
* You must include either `logGroupIdentifier` or `logGroupName`, but not both.
*/
public var logGroupName: kotlin.String? = null
/**
* The time to set as the center of the query. If you specify `time`, the 8 minutes before and 8 minutes after this time are searched. If you omit `time`, the most recent 15 minutes up to the current time are searched.
*
* The `time` value is specified as epoch time, which is the number of seconds since `January 1, 1970, 00:00:00 UTC`.
*/
public var time: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.GetLogGroupFieldsRequest) : this() {
this.logGroupIdentifier = x.logGroupIdentifier
this.logGroupName = x.logGroupName
this.time = x.time
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.GetLogGroupFieldsRequest = GetLogGroupFieldsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}