/* * 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.apigateway.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Represents a collection of API keys as represented by an ApiKeys resource. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetApiKeysResult extends com.amazonaws.AmazonWebServiceResult
* A list of warning messages logged during the import of API keys when the failOnWarnings
option is
* set to true.
*
* The current page of elements from this collection. *
*/ private java.util.List
* A list of warning messages logged during the import of API keys when the failOnWarnings
option is
* set to true.
*
failOnWarnings
* option is set to true.
*/
public java.util.List
* A list of warning messages logged during the import of API keys when the failOnWarnings
option is
* set to true.
*
failOnWarnings
* option is set to true.
*/
public void setWarnings(java.util.Collection
* A list of warning messages logged during the import of API keys when the failOnWarnings
option is
* set to true.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override * the existing values. *
* * @param warnings * A list of warning messages logged during the import of API keys when thefailOnWarnings
* option is set to true.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetApiKeysResult withWarnings(String... warnings) {
if (this.warnings == null) {
setWarnings(new java.util.ArrayList
* A list of warning messages logged during the import of API keys when the failOnWarnings
option is
* set to true.
*
failOnWarnings
* option is set to true.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetApiKeysResult withWarnings(java.util.Collection* The current page of elements from this collection. *
* * @return The current page of elements from this collection. */ public java.util.List* The current page of elements from this collection. *
* * @param items * The current page of elements from this collection. */ public void setItems(java.util.Collection* The current page of elements from this collection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setItems(java.util.Collection)} or {@link #withItems(java.util.Collection)} if you want to override the * existing values. *
* * @param items * The current page of elements from this collection. * @return Returns a reference to this object so that method calls can be chained together. */ public GetApiKeysResult withItems(ApiKey... items) { if (this.items == null) { setItems(new java.util.ArrayList* The current page of elements from this collection. *
* * @param items * The current page of elements from this collection. * @return Returns a reference to this object so that method calls can be chained together. */ public GetApiKeysResult withItems(java.util.Collection