/* * 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.detective.model; import javax.annotation.Generated; /** *
* This request cannot be completed for one of the following reasons. *
** The request would cause the number of member accounts in the behavior graph to exceed the maximum allowed. A behavior * graph cannot have more than 1200 member accounts. *
** The request would cause the data rate for the behavior graph to exceed the maximum allowed. *
** Detective is unable to verify the data rate for the member account. This is usually because the member account is not * enrolled in Amazon GuardDuty. *
** The type of resource that has exceeded the service quota. *
*/ private java.util.List* The type of resource that has exceeded the service quota. *
* * @return The type of resource that has exceeded the service quota. */ @com.fasterxml.jackson.annotation.JsonProperty("Resources") public java.util.List* The type of resource that has exceeded the service quota. *
* * @param resources * The type of resource that has exceeded the service quota. */ @com.fasterxml.jackson.annotation.JsonProperty("Resources") public void setResources(java.util.Collection* The type of resource that has exceeded the service quota. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to * override the existing values. *
* * @param resources * The type of resource that has exceeded the service quota. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceQuotaExceededException withResources(String... resources) { if (this.resources == null) { setResources(new java.util.ArrayList* The type of resource that has exceeded the service quota. *
* * @param resources * The type of resource that has exceeded the service quota. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceQuotaExceededException withResources(java.util.Collection