/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.logs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetLogGroupFieldsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the log group to search. *
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* 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
.
*
* 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.
*
* The name of the log group to search. *
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* The name of the log group to search. *
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* The name of the log group to search. *
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* 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
.
*
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 void setTime(Long time) {
this.time = time;
}
/**
*
* 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
.
*
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 Long getTime() {
return this.time;
}
/**
*
* 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
.
*
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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetLogGroupFieldsRequest withTime(Long time) {
setTime(time);
return this;
}
/**
*
* 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.
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* 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.
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*
* 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.
*
* You must include either logGroupIdentifier
or logGroupName
, but not both.
*