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

com.amazonaws.services.s3control.model.GetBucketResult Maven / Gradle / Ivy

Go to download

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

The 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.s3control.model;

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

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

    /**
     * 

* The Outposts bucket requested. *

*/ private String bucket; /**

*/ private Boolean publicAccessBlockEnabled; /** *

* The creation date of the Outposts bucket. *

*/ private java.util.Date creationDate; /** *

* The Outposts bucket requested. *

* * @param bucket * The Outposts bucket requested. */ public void setBucket(String bucket) { this.bucket = bucket; } /** *

* The Outposts bucket requested. *

* * @return The Outposts bucket requested. */ public String getBucket() { return this.bucket; } /** *

* The Outposts bucket requested. *

* * @param bucket * The Outposts bucket requested. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBucketResult withBucket(String bucket) { setBucket(bucket); return this; } /** *

* * @param publicAccessBlockEnabled */ public void setPublicAccessBlockEnabled(Boolean publicAccessBlockEnabled) { this.publicAccessBlockEnabled = publicAccessBlockEnabled; } /** *

* * @return */ public Boolean getPublicAccessBlockEnabled() { return this.publicAccessBlockEnabled; } /** *

* * @param publicAccessBlockEnabled * @return Returns a reference to this object so that method calls can be chained together. */ public GetBucketResult withPublicAccessBlockEnabled(Boolean publicAccessBlockEnabled) { setPublicAccessBlockEnabled(publicAccessBlockEnabled); return this; } /** *

* * @return */ public Boolean isPublicAccessBlockEnabled() { return this.publicAccessBlockEnabled; } /** *

* The creation date of the Outposts bucket. *

* * @param creationDate * The creation date of the Outposts bucket. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** *

* The creation date of the Outposts bucket. *

* * @return The creation date of the Outposts bucket. */ public java.util.Date getCreationDate() { return this.creationDate; } /** *

* The creation date of the Outposts bucket. *

* * @param creationDate * The creation date of the Outposts bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBucketResult withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); 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 (getBucket() != null) sb.append("Bucket: ").append(getBucket()).append(","); if (getPublicAccessBlockEnabled() != null) sb.append("PublicAccessBlockEnabled: ").append(getPublicAccessBlockEnabled()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetBucketResult == false) return false; GetBucketResult other = (GetBucketResult) obj; if (other.getBucket() == null ^ this.getBucket() == null) return false; if (other.getBucket() != null && other.getBucket().equals(this.getBucket()) == false) return false; if (other.getPublicAccessBlockEnabled() == null ^ this.getPublicAccessBlockEnabled() == null) return false; if (other.getPublicAccessBlockEnabled() != null && other.getPublicAccessBlockEnabled().equals(this.getPublicAccessBlockEnabled()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBucket() == null) ? 0 : getBucket().hashCode()); hashCode = prime * hashCode + ((getPublicAccessBlockEnabled() == null) ? 0 : getPublicAccessBlockEnabled().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); return hashCode; } @Override public GetBucketResult clone() { try { return (GetBucketResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy