/* * 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.lightsail.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 GetContainerLogRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the container service for which to get a container log. *

*/ private String serviceName; /** *

* The name of the container that is either running or previously ran on the container service for which to return a * log. *

*/ private String containerName; /** *

* The start of the time interval for which to get log data. *

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. *

*/ private java.util.Date startTime; /** *

* The end of the time interval for which to get log data. *

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. *

*/ private java.util.Date endTime; /** *

* The pattern to use to filter the returned log events to a specific term. *

*

* The following are a few examples of filter patterns that you can specify: *

* */ private String filterPattern; /** *

* The token to advance to the next page of results from your request. *

*

* To get a page token, perform an initial GetContainerLog request. If your results are paginated, the * response will return a next page token that you can specify as the page token in a subsequent request. *

*/ private String pageToken; /** *

* The name of the container service for which to get a container log. *

* * @param serviceName * The name of the container service for which to get a container log. */ public void setServiceName(String serviceName) { this.serviceName = serviceName; } /** *

* The name of the container service for which to get a container log. *

* * @return The name of the container service for which to get a container log. */ public String getServiceName() { return this.serviceName; } /** *

* The name of the container service for which to get a container log. *

* * @param serviceName * The name of the container service for which to get a container log. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContainerLogRequest withServiceName(String serviceName) { setServiceName(serviceName); return this; } /** *

* The name of the container that is either running or previously ran on the container service for which to return a * log. *

* * @param containerName * The name of the container that is either running or previously ran on the container service for which to * return a log. */ public void setContainerName(String containerName) { this.containerName = containerName; } /** *

* The name of the container that is either running or previously ran on the container service for which to return a * log. *

* * @return The name of the container that is either running or previously ran on the container service for which to * return a log. */ public String getContainerName() { return this.containerName; } /** *

* The name of the container that is either running or previously ran on the container service for which to return a * log. *

* * @param containerName * The name of the container that is either running or previously ran on the container service for which to * return a log. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContainerLogRequest withContainerName(String containerName) { setContainerName(containerName); return this; } /** *

* The start of the time interval for which to get log data. *

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. *

* * @param startTime * The start of the time interval for which to get log data.

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start of the time interval for which to get log data. *

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. *

* * @return The start of the time interval for which to get log data.

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start of the time interval for which to get log data. *

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. *

* * @param startTime * The start of the time interval for which to get log data.

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContainerLogRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The end of the time interval for which to get log data. *

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. *

* * @param endTime * The end of the time interval for which to get log data.

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end of the time interval for which to get log data. *

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. *

* * @return The end of the time interval for which to get log data.

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end of the time interval for which to get log data. *

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. *

* * @param endTime * The end of the time interval for which to get log data.

*

* Constraints: *

* *

* You can convert a human-friendly time to Unix time format using a converter like Epoch converter. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContainerLogRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The pattern to use to filter the returned log events to a specific term. *

*

* The following are a few examples of filter patterns that you can specify: *

* * * @param filterPattern * The pattern to use to filter the returned log events to a specific term.

*

* The following are a few examples of filter patterns that you can specify: *

*