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

com.amazonaws.services.s3control.model.RegionalBucket 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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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;

/**
 * 

* The container for the regional bucket. *

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

*/ private String bucket; /** *

* The Amazon Resource Name (ARN) for the regional bucket. *

*/ private String bucketArn; /**

*/ private Boolean publicAccessBlockEnabled; /** *

* The creation date of the regional bucket *

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

* The Outposts ID of the regional bucket. *

*/ private String outpostId; /** *

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

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

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

* The Amazon Resource Name (ARN) for the regional bucket. *

* * @param bucketArn * The Amazon Resource Name (ARN) for the regional bucket. */ public void setBucketArn(String bucketArn) { this.bucketArn = bucketArn; } /** *

* The Amazon Resource Name (ARN) for the regional bucket. *

* * @return The Amazon Resource Name (ARN) for the regional bucket. */ public String getBucketArn() { return this.bucketArn; } /** *

* The Amazon Resource Name (ARN) for the regional bucket. *

* * @param bucketArn * The Amazon Resource Name (ARN) for the regional bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public RegionalBucket withBucketArn(String bucketArn) { setBucketArn(bucketArn); 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 RegionalBucket withPublicAccessBlockEnabled(Boolean publicAccessBlockEnabled) { setPublicAccessBlockEnabled(publicAccessBlockEnabled); return this; } /** *

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

* The creation date of the regional bucket *

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

* The creation date of the regional bucket *

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

* The creation date of the regional bucket *

* * @param creationDate * The creation date of the regional bucket * @return Returns a reference to this object so that method calls can be chained together. */ public RegionalBucket withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *

* The Outposts ID of the regional bucket. *

* * @param outpostId * The Outposts ID of the regional bucket. */ public void setOutpostId(String outpostId) { this.outpostId = outpostId; } /** *

* The Outposts ID of the regional bucket. *

* * @return The Outposts ID of the regional bucket. */ public String getOutpostId() { return this.outpostId; } /** *

* The Outposts ID of the regional bucket. *

* * @param outpostId * The Outposts ID of the regional bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public RegionalBucket withOutpostId(String outpostId) { setOutpostId(outpostId); 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 (getBucketArn() != null) sb.append("BucketArn: ").append(getBucketArn()).append(","); if (getPublicAccessBlockEnabled() != null) sb.append("PublicAccessBlockEnabled: ").append(getPublicAccessBlockEnabled()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getOutpostId() != null) sb.append("OutpostId: ").append(getOutpostId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RegionalBucket == false) return false; RegionalBucket other = (RegionalBucket) obj; if (other.getBucket() == null ^ this.getBucket() == null) return false; if (other.getBucket() != null && other.getBucket().equals(this.getBucket()) == false) return false; if (other.getBucketArn() == null ^ this.getBucketArn() == null) return false; if (other.getBucketArn() != null && other.getBucketArn().equals(this.getBucketArn()) == 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; if (other.getOutpostId() == null ^ this.getOutpostId() == null) return false; if (other.getOutpostId() != null && other.getOutpostId().equals(this.getOutpostId()) == 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 + ((getBucketArn() == null) ? 0 : getBucketArn().hashCode()); hashCode = prime * hashCode + ((getPublicAccessBlockEnabled() == null) ? 0 : getPublicAccessBlockEnabled().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getOutpostId() == null) ? 0 : getOutpostId().hashCode()); return hashCode; } @Override public RegionalBucket clone() { try { return (RegionalBucket) 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