All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.lambda.model.PutProvisionedConcurrencyConfigResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Lambda module holds the client classes that are used for communicating with AWS Lambda Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2016-2021 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.lambda.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class PutProvisionedConcurrencyConfigResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
        Cloneable {

    /**
     * 

* The amount of provisioned concurrency requested. *

*/ private Integer requestedProvisionedConcurrentExecutions; /** *

* The amount of provisioned concurrency available. *

*/ private Integer availableProvisionedConcurrentExecutions; /** *

* The amount of provisioned concurrency allocated. *

*/ private Integer allocatedProvisionedConcurrentExecutions; /** *

* The status of the allocation process. *

*/ private String status; /** *

* For failed allocations, the reason that provisioned concurrency could not be allocated. *

*/ private String statusReason; /** *

* The date and time that a user last updated the configuration, in ISO 8601 format. *

*/ private String lastModified; /** *

* The amount of provisioned concurrency requested. *

* * @param requestedProvisionedConcurrentExecutions * The amount of provisioned concurrency requested. */ public void setRequestedProvisionedConcurrentExecutions(Integer requestedProvisionedConcurrentExecutions) { this.requestedProvisionedConcurrentExecutions = requestedProvisionedConcurrentExecutions; } /** *

* The amount of provisioned concurrency requested. *

* * @return The amount of provisioned concurrency requested. */ public Integer getRequestedProvisionedConcurrentExecutions() { return this.requestedProvisionedConcurrentExecutions; } /** *

* The amount of provisioned concurrency requested. *

* * @param requestedProvisionedConcurrentExecutions * The amount of provisioned concurrency requested. * @return Returns a reference to this object so that method calls can be chained together. */ public PutProvisionedConcurrencyConfigResult withRequestedProvisionedConcurrentExecutions(Integer requestedProvisionedConcurrentExecutions) { setRequestedProvisionedConcurrentExecutions(requestedProvisionedConcurrentExecutions); return this; } /** *

* The amount of provisioned concurrency available. *

* * @param availableProvisionedConcurrentExecutions * The amount of provisioned concurrency available. */ public void setAvailableProvisionedConcurrentExecutions(Integer availableProvisionedConcurrentExecutions) { this.availableProvisionedConcurrentExecutions = availableProvisionedConcurrentExecutions; } /** *

* The amount of provisioned concurrency available. *

* * @return The amount of provisioned concurrency available. */ public Integer getAvailableProvisionedConcurrentExecutions() { return this.availableProvisionedConcurrentExecutions; } /** *

* The amount of provisioned concurrency available. *

* * @param availableProvisionedConcurrentExecutions * The amount of provisioned concurrency available. * @return Returns a reference to this object so that method calls can be chained together. */ public PutProvisionedConcurrencyConfigResult withAvailableProvisionedConcurrentExecutions(Integer availableProvisionedConcurrentExecutions) { setAvailableProvisionedConcurrentExecutions(availableProvisionedConcurrentExecutions); return this; } /** *

* The amount of provisioned concurrency allocated. *

* * @param allocatedProvisionedConcurrentExecutions * The amount of provisioned concurrency allocated. */ public void setAllocatedProvisionedConcurrentExecutions(Integer allocatedProvisionedConcurrentExecutions) { this.allocatedProvisionedConcurrentExecutions = allocatedProvisionedConcurrentExecutions; } /** *

* The amount of provisioned concurrency allocated. *

* * @return The amount of provisioned concurrency allocated. */ public Integer getAllocatedProvisionedConcurrentExecutions() { return this.allocatedProvisionedConcurrentExecutions; } /** *

* The amount of provisioned concurrency allocated. *

* * @param allocatedProvisionedConcurrentExecutions * The amount of provisioned concurrency allocated. * @return Returns a reference to this object so that method calls can be chained together. */ public PutProvisionedConcurrencyConfigResult withAllocatedProvisionedConcurrentExecutions(Integer allocatedProvisionedConcurrentExecutions) { setAllocatedProvisionedConcurrentExecutions(allocatedProvisionedConcurrentExecutions); return this; } /** *

* The status of the allocation process. *

* * @param status * The status of the allocation process. * @see ProvisionedConcurrencyStatusEnum */ public void setStatus(String status) { this.status = status; } /** *

* The status of the allocation process. *

* * @return The status of the allocation process. * @see ProvisionedConcurrencyStatusEnum */ public String getStatus() { return this.status; } /** *

* The status of the allocation process. *

* * @param status * The status of the allocation process. * @return Returns a reference to this object so that method calls can be chained together. * @see ProvisionedConcurrencyStatusEnum */ public PutProvisionedConcurrencyConfigResult withStatus(String status) { setStatus(status); return this; } /** *

* The status of the allocation process. *

* * @param status * The status of the allocation process. * @return Returns a reference to this object so that method calls can be chained together. * @see ProvisionedConcurrencyStatusEnum */ public PutProvisionedConcurrencyConfigResult withStatus(ProvisionedConcurrencyStatusEnum status) { this.status = status.toString(); return this; } /** *

* For failed allocations, the reason that provisioned concurrency could not be allocated. *

* * @param statusReason * For failed allocations, the reason that provisioned concurrency could not be allocated. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** *

* For failed allocations, the reason that provisioned concurrency could not be allocated. *

* * @return For failed allocations, the reason that provisioned concurrency could not be allocated. */ public String getStatusReason() { return this.statusReason; } /** *

* For failed allocations, the reason that provisioned concurrency could not be allocated. *

* * @param statusReason * For failed allocations, the reason that provisioned concurrency could not be allocated. * @return Returns a reference to this object so that method calls can be chained together. */ public PutProvisionedConcurrencyConfigResult withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** *

* The date and time that a user last updated the configuration, in ISO 8601 format. *

* * @param lastModified * The date and time that a user last updated the configuration, in ISO 8601 format. */ public void setLastModified(String lastModified) { this.lastModified = lastModified; } /** *

* The date and time that a user last updated the configuration, in ISO 8601 format. *

* * @return The date and time that a user last updated the configuration, in ISO 8601 format. */ public String getLastModified() { return this.lastModified; } /** *

* The date and time that a user last updated the configuration, in ISO 8601 format. *

* * @param lastModified * The date and time that a user last updated the configuration, in ISO 8601 format. * @return Returns a reference to this object so that method calls can be chained together. */ public PutProvisionedConcurrencyConfigResult withLastModified(String lastModified) { setLastModified(lastModified); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRequestedProvisionedConcurrentExecutions() != null) sb.append("RequestedProvisionedConcurrentExecutions: ").append(getRequestedProvisionedConcurrentExecutions()).append(","); if (getAvailableProvisionedConcurrentExecutions() != null) sb.append("AvailableProvisionedConcurrentExecutions: ").append(getAvailableProvisionedConcurrentExecutions()).append(","); if (getAllocatedProvisionedConcurrentExecutions() != null) sb.append("AllocatedProvisionedConcurrentExecutions: ").append(getAllocatedProvisionedConcurrentExecutions()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).append(","); if (getLastModified() != null) sb.append("LastModified: ").append(getLastModified()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutProvisionedConcurrencyConfigResult == false) return false; PutProvisionedConcurrencyConfigResult other = (PutProvisionedConcurrencyConfigResult) obj; if (other.getRequestedProvisionedConcurrentExecutions() == null ^ this.getRequestedProvisionedConcurrentExecutions() == null) return false; if (other.getRequestedProvisionedConcurrentExecutions() != null && other.getRequestedProvisionedConcurrentExecutions().equals(this.getRequestedProvisionedConcurrentExecutions()) == false) return false; if (other.getAvailableProvisionedConcurrentExecutions() == null ^ this.getAvailableProvisionedConcurrentExecutions() == null) return false; if (other.getAvailableProvisionedConcurrentExecutions() != null && other.getAvailableProvisionedConcurrentExecutions().equals(this.getAvailableProvisionedConcurrentExecutions()) == false) return false; if (other.getAllocatedProvisionedConcurrentExecutions() == null ^ this.getAllocatedProvisionedConcurrentExecutions() == null) return false; if (other.getAllocatedProvisionedConcurrentExecutions() != null && other.getAllocatedProvisionedConcurrentExecutions().equals(this.getAllocatedProvisionedConcurrentExecutions()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; if (other.getLastModified() == null ^ this.getLastModified() == null) return false; if (other.getLastModified() != null && other.getLastModified().equals(this.getLastModified()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRequestedProvisionedConcurrentExecutions() == null) ? 0 : getRequestedProvisionedConcurrentExecutions().hashCode()); hashCode = prime * hashCode + ((getAvailableProvisionedConcurrentExecutions() == null) ? 0 : getAvailableProvisionedConcurrentExecutions().hashCode()); hashCode = prime * hashCode + ((getAllocatedProvisionedConcurrentExecutions() == null) ? 0 : getAllocatedProvisionedConcurrentExecutions().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getLastModified() == null) ? 0 : getLastModified().hashCode()); return hashCode; } @Override public PutProvisionedConcurrencyConfigResult clone() { try { return (PutProvisionedConcurrencyConfigResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy