/* * 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.synthetics.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 DescribeCanariesLastRunRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A token that indicates that there is more data available. You can use this token in a subsequent
* DescribeCanariesLastRun
operation to retrieve the next set of results.
*
* Specify this parameter to limit how many runs are returned each time you use the DescribeLastRun
* operation. If you omit this parameter, the default of 100 is used.
*
* Use this parameter to return only canaries that match the names that you specify here. You can specify as many as * five canary names. *
** If you specify this parameter, the operation is successful only if you have authorization to view all the * canaries that you specify in your request. If you do not have permission to view any of the canaries, the request * fails with a 403 response. *
*
* You are required to use the Names
parameter if you are logged on to a user or role that has an IAM
* policy that restricts which canaries that you are allowed to view. For more information, see
* Limiting a user to viewing specific canaries.
*
* A token that indicates that there is more data available. You can use this token in a subsequent
* DescribeCanariesLastRun
operation to retrieve the next set of results.
*
DescribeCanariesLastRun
operation to retrieve the next set of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* A token that indicates that there is more data available. You can use this token in a subsequent
* DescribeCanariesLastRun
operation to retrieve the next set of results.
*
DescribeCanariesLastRun
operation to retrieve the next set of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* A token that indicates that there is more data available. You can use this token in a subsequent
* DescribeCanariesLastRun
operation to retrieve the next set of results.
*
DescribeCanariesLastRun
operation to retrieve the next set of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeCanariesLastRunRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* Specify this parameter to limit how many runs are returned each time you use the DescribeLastRun
* operation. If you omit this parameter, the default of 100 is used.
*
DescribeLastRun
operation. If you omit this parameter, the default of 100 is used.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* Specify this parameter to limit how many runs are returned each time you use the DescribeLastRun
* operation. If you omit this parameter, the default of 100 is used.
*
DescribeLastRun
operation. If you omit this parameter, the default of 100 is used.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* Specify this parameter to limit how many runs are returned each time you use the DescribeLastRun
* operation. If you omit this parameter, the default of 100 is used.
*
DescribeLastRun
operation. If you omit this parameter, the default of 100 is used.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeCanariesLastRunRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
* * Use this parameter to return only canaries that match the names that you specify here. You can specify as many as * five canary names. *
** If you specify this parameter, the operation is successful only if you have authorization to view all the * canaries that you specify in your request. If you do not have permission to view any of the canaries, the request * fails with a 403 response. *
*
* You are required to use the Names
parameter if you are logged on to a user or role that has an IAM
* policy that restricts which canaries that you are allowed to view. For more information, see
* Limiting a user to viewing specific canaries.
*
* If you specify this parameter, the operation is successful only if you have authorization to view all the * canaries that you specify in your request. If you do not have permission to view any of the canaries, the * request fails with a 403 response. *
*
* You are required to use the
* Use this parameter to return only canaries that match the names that you specify here. You can specify as many as
* five canary names.
*
* If you specify this parameter, the operation is successful only if you have authorization to view all the
* canaries that you specify in your request. If you do not have permission to view any of the canaries, the request
* fails with a 403 response.
*
* You are required to use the Names
parameter if you are logged on to a user or role that has
* an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries.
*/
public java.util.ListNames
parameter if you are logged on to a user or role that has an IAM
* policy that restricts which canaries that you are allowed to view. For more information, see
* Limiting a user to viewing specific canaries.
*
* If you specify this parameter, the operation is successful only if you have authorization to view all the * canaries that you specify in your request. If you do not have permission to view any of the canaries, the * request fails with a 403 response. *
*
* You are required to use the
* Use this parameter to return only canaries that match the names that you specify here. You can specify as many as
* five canary names.
*
* If you specify this parameter, the operation is successful only if you have authorization to view all the
* canaries that you specify in your request. If you do not have permission to view any of the canaries, the request
* fails with a 403 response.
*
* You are required to use the
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNames(java.util.Collection)} or {@link #withNames(java.util.Collection)} if you want to override the
* existing values.
* Names
parameter if you are logged on to a user or role that has
* an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries.
*/
public void setNames(java.util.CollectionNames
parameter if you are logged on to a user or role that has an IAM
* policy that restricts which canaries that you are allowed to view. For more information, see
* Limiting a user to viewing specific canaries.
*
* If you specify this parameter, the operation is successful only if you have authorization to view all the * canaries that you specify in your request. If you do not have permission to view any of the canaries, the * request fails with a 403 response. *
*
* You are required to use the
* Use this parameter to return only canaries that match the names that you specify here. You can specify as many as
* five canary names.
*
* If you specify this parameter, the operation is successful only if you have authorization to view all the
* canaries that you specify in your request. If you do not have permission to view any of the canaries, the request
* fails with a 403 response.
*
* You are required to use the Names
parameter if you are logged on to a user or role that has
* an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeCanariesLastRunRequest withNames(String... names) {
if (this.names == null) {
setNames(new java.util.ArrayListNames
parameter if you are logged on to a user or role that has an IAM
* policy that restricts which canaries that you are allowed to view. For more information, see
* Limiting a user to viewing specific canaries.
*
* If you specify this parameter, the operation is successful only if you have authorization to view all the * canaries that you specify in your request. If you do not have permission to view any of the canaries, the * request fails with a 403 response. *
*
* You are required to use the Names
parameter if you are logged on to a user or role that has
* an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeCanariesLastRunRequest withNames(java.util.Collection