/* * 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 DescribeCanariesRequest 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 operation to * retrieve the next set of results. *
*/ private String nextToken; /** *
* Specify this parameter to limit how many canaries are returned each time you use the
* DescribeCanaries
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 this 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. *
*/ private java.util.List* A token that indicates that there is more data available. You can use this token in a subsequent operation to * retrieve the next set of results. *
* * @param nextToken * A token that indicates that there is more data available. You can use this token in a subsequent 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 operation to * retrieve the next set of results. *
* * @return A token that indicates that there is more data available. You can use this token in a subsequent * 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 operation to * retrieve the next set of results. *
* * @param nextToken * A token that indicates that there is more data available. You can use this token in a subsequent operation * to retrieve the next set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCanariesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *
* Specify this parameter to limit how many canaries are returned each time you use the
* DescribeCanaries
operation. If you omit this parameter, the default of 100 is used.
*
DescribeCanaries
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 canaries are returned each time you use the
* DescribeCanaries
operation. If you omit this parameter, the default of 100 is used.
*
DescribeCanaries
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 canaries are returned each time you use the
* DescribeCanaries
operation. If you omit this parameter, the default of 100 is used.
*
DescribeCanaries
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 DescribeCanariesRequest 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 this 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 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 this 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.List
* 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 this 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 this 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.Collection
* 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 this 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.
*
* 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.
*
* 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 this 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 DescribeCanariesRequest withNames(String... names) {
if (this.names == null) {
setNames(new java.util.ArrayList
* 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 this 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 this 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 DescribeCanariesRequest withNames(java.util.Collection