/* * 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 the usage data of a usage plan. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateUsageResult extends com.amazonaws.AmazonWebServiceResult* The plan Id associated with this usage data. *
*/ private String usagePlanId; /** ** The starting date of the usage data. *
*/ private String startDate; /** ** The ending date of the usage data. *
*/ private String endDate; private String position; /** *
* The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
* keys in a usage plan. For example,
* {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where {api_key}
* stands for an API key value and the daily log entry is of the format [used quota, remaining quota]
.
*
* The plan Id associated with this usage data. *
* * @param usagePlanId * The plan Id associated with this usage data. */ public void setUsagePlanId(String usagePlanId) { this.usagePlanId = usagePlanId; } /** ** The plan Id associated with this usage data. *
* * @return The plan Id associated with this usage data. */ public String getUsagePlanId() { return this.usagePlanId; } /** ** The plan Id associated with this usage data. *
* * @param usagePlanId * The plan Id associated with this usage data. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUsageResult withUsagePlanId(String usagePlanId) { setUsagePlanId(usagePlanId); return this; } /** ** The starting date of the usage data. *
* * @param startDate * The starting date of the usage data. */ public void setStartDate(String startDate) { this.startDate = startDate; } /** ** The starting date of the usage data. *
* * @return The starting date of the usage data. */ public String getStartDate() { return this.startDate; } /** ** The starting date of the usage data. *
* * @param startDate * The starting date of the usage data. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUsageResult withStartDate(String startDate) { setStartDate(startDate); return this; } /** ** The ending date of the usage data. *
* * @param endDate * The ending date of the usage data. */ public void setEndDate(String endDate) { this.endDate = endDate; } /** ** The ending date of the usage data. *
* * @return The ending date of the usage data. */ public String getEndDate() { return this.endDate; } /** ** The ending date of the usage data. *
* * @param endDate * The ending date of the usage data. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUsageResult withEndDate(String endDate) { setEndDate(endDate); return this; } /** * @param position */ public void setPosition(String position) { this.position = position; } /** * @return */ public String getPosition() { return this.position; } /** * @param position * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUsageResult withPosition(String position) { setPosition(position); return this; } /** *
* The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
* keys in a usage plan. For example,
* {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where {api_key}
* stands for an API key value and the daily log entry is of the format [used quota, remaining quota]
.
*
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where
* {api_key}
stands for an API key value and the daily log entry is of the format
* [used quota, remaining quota]
.
*/
public java.util.Map
* The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
* keys in a usage plan. For example,
* {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where {api_key}
* stands for an API key value and the daily log entry is of the format [used quota, remaining quota]
.
*
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where
* {api_key}
stands for an API key value and the daily log entry is of the format
* [used quota, remaining quota]
.
*/
public void setItems(java.util.Map
* The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
* keys in a usage plan. For example,
* {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where {api_key}
* stands for an API key value and the daily log entry is of the format [used quota, remaining quota]
.
*
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where
* {api_key}
stands for an API key value and the daily log entry is of the format
* [used quota, remaining quota]
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateUsageResult withItems(java.util.Map