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

com.amazonaws.services.glacier.model.ProvisionedCapacityDescription Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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.glacier.model;

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

/**
 * 

* The definition for a provisioned capacity unit. *

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

* The ID that identifies the provisioned capacity unit. *

*/ private String capacityId; /** *

* The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC). *

*/ private String startDate; /** *

* The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC). *

*/ private String expirationDate; /** *

* The ID that identifies the provisioned capacity unit. *

* * @param capacityId * The ID that identifies the provisioned capacity unit. */ public void setCapacityId(String capacityId) { this.capacityId = capacityId; } /** *

* The ID that identifies the provisioned capacity unit. *

* * @return The ID that identifies the provisioned capacity unit. */ public String getCapacityId() { return this.capacityId; } /** *

* The ID that identifies the provisioned capacity unit. *

* * @param capacityId * The ID that identifies the provisioned capacity unit. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedCapacityDescription withCapacityId(String capacityId) { setCapacityId(capacityId); return this; } /** *

* The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC). *

* * @param startDate * The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC). */ public void setStartDate(String startDate) { this.startDate = startDate; } /** *

* The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC). *

* * @return The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC). */ public String getStartDate() { return this.startDate; } /** *

* The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC). *

* * @param startDate * The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC). * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedCapacityDescription withStartDate(String startDate) { setStartDate(startDate); return this; } /** *

* The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC). *

* * @param expirationDate * The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC). */ public void setExpirationDate(String expirationDate) { this.expirationDate = expirationDate; } /** *

* The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC). *

* * @return The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC). */ public String getExpirationDate() { return this.expirationDate; } /** *

* The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC). *

* * @param expirationDate * The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC). * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedCapacityDescription withExpirationDate(String expirationDate) { setExpirationDate(expirationDate); 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 (getCapacityId() != null) sb.append("CapacityId: ").append(getCapacityId()).append(","); if (getStartDate() != null) sb.append("StartDate: ").append(getStartDate()).append(","); if (getExpirationDate() != null) sb.append("ExpirationDate: ").append(getExpirationDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProvisionedCapacityDescription == false) return false; ProvisionedCapacityDescription other = (ProvisionedCapacityDescription) obj; if (other.getCapacityId() == null ^ this.getCapacityId() == null) return false; if (other.getCapacityId() != null && other.getCapacityId().equals(this.getCapacityId()) == false) return false; if (other.getStartDate() == null ^ this.getStartDate() == null) return false; if (other.getStartDate() != null && other.getStartDate().equals(this.getStartDate()) == false) return false; if (other.getExpirationDate() == null ^ this.getExpirationDate() == null) return false; if (other.getExpirationDate() != null && other.getExpirationDate().equals(this.getExpirationDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCapacityId() == null) ? 0 : getCapacityId().hashCode()); hashCode = prime * hashCode + ((getStartDate() == null) ? 0 : getStartDate().hashCode()); hashCode = prime * hashCode + ((getExpirationDate() == null) ? 0 : getExpirationDate().hashCode()); return hashCode; } @Override public ProvisionedCapacityDescription clone() { try { return (ProvisionedCapacityDescription) 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.glacier.model.transform.ProvisionedCapacityDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy