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

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

/*
 * 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.lambda.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Details about the provisioned concurrency configuration for a function alias or version. *

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

* The Amazon Resource Name (ARN) of the alias or version. *

*/ private String functionArn; /** *

* The amount of provisioned concurrency requested. *

*/ private Integer requestedProvisionedConcurrentExecutions; /** *

* The amount of provisioned concurrency available. *

*/ private Integer availableProvisionedConcurrentExecutions; /** *

* The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary * deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function * versions. *

*/ 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 Amazon Resource Name (ARN) of the alias or version. *

* * @param functionArn * The Amazon Resource Name (ARN) of the alias or version. */ public void setFunctionArn(String functionArn) { this.functionArn = functionArn; } /** *

* The Amazon Resource Name (ARN) of the alias or version. *

* * @return The Amazon Resource Name (ARN) of the alias or version. */ public String getFunctionArn() { return this.functionArn; } /** *

* The Amazon Resource Name (ARN) of the alias or version. *

* * @param functionArn * The Amazon Resource Name (ARN) of the alias or version. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedConcurrencyConfigListItem withFunctionArn(String functionArn) { setFunctionArn(functionArn); return this; } /** *

* 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 ProvisionedConcurrencyConfigListItem 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 ProvisionedConcurrencyConfigListItem withAvailableProvisionedConcurrentExecutions(Integer availableProvisionedConcurrentExecutions) { setAvailableProvisionedConcurrentExecutions(availableProvisionedConcurrentExecutions); return this; } /** *

* The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary * deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function * versions. *

* * @param allocatedProvisionedConcurrentExecutions * The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary * deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the * function versions. */ public void setAllocatedProvisionedConcurrentExecutions(Integer allocatedProvisionedConcurrentExecutions) { this.allocatedProvisionedConcurrentExecutions = allocatedProvisionedConcurrentExecutions; } /** *

* The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary * deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function * versions. *

* * @return The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary * deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the * function versions. */ public Integer getAllocatedProvisionedConcurrentExecutions() { return this.allocatedProvisionedConcurrentExecutions; } /** *

* The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary * deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function * versions. *

* * @param allocatedProvisionedConcurrentExecutions * The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary * deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the * function versions. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedConcurrencyConfigListItem 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 ProvisionedConcurrencyConfigListItem 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 ProvisionedConcurrencyConfigListItem 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 ProvisionedConcurrencyConfigListItem 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 ProvisionedConcurrencyConfigListItem 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 (getFunctionArn() != null) sb.append("FunctionArn: ").append(getFunctionArn()).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 ProvisionedConcurrencyConfigListItem == false) return false; ProvisionedConcurrencyConfigListItem other = (ProvisionedConcurrencyConfigListItem) obj; if (other.getFunctionArn() == null ^ this.getFunctionArn() == null) return false; if (other.getFunctionArn() != null && other.getFunctionArn().equals(this.getFunctionArn()) == false) return false; 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 + ((getFunctionArn() == null) ? 0 : getFunctionArn().hashCode()); 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 ProvisionedConcurrencyConfigListItem clone() { try { return (ProvisionedConcurrencyConfigListItem) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.lambda.model.transform.ProvisionedConcurrencyConfigListItemMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy