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

com.amazonaws.services.globalaccelerator.model.AcceleratorAttributes Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Global Accelerator module holds the client classes that are used for communicating with AWS Global Accelerator 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.globalaccelerator.model;

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

/**
 * 

* Attributes of an accelerator. *

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

* Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified. *

*

* For more information, see Flow * logs in the Global Accelerator Developer Guide. *

*/ private Boolean flowLogsEnabled; /** *

* The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is * true. The bucket must exist and have a bucket policy that grants Global Accelerator permission to * write to the bucket. *

*/ private String flowLogsS3Bucket; /** *

* The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if * FlowLogsEnabled is true. *

*

* If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double * slash (//), like the following: *

*

* s3-bucket_name//AWSLogs/aws_account_id *

*/ private String flowLogsS3Prefix; /** *

* Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified. *

*

* For more information, see Flow * logs in the Global Accelerator Developer Guide. *

* * @param flowLogsEnabled * Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified.

*

* For more information, see Flow logs in the Global Accelerator Developer Guide. */ public void setFlowLogsEnabled(Boolean flowLogsEnabled) { this.flowLogsEnabled = flowLogsEnabled; } /** *

* Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified. *

*

* For more information, see Flow * logs in the Global Accelerator Developer Guide. *

* * @return Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified.

*

* For more information, see Flow logs in the Global Accelerator Developer Guide. */ public Boolean getFlowLogsEnabled() { return this.flowLogsEnabled; } /** *

* Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified. *

*

* For more information, see Flow * logs in the Global Accelerator Developer Guide. *

* * @param flowLogsEnabled * Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified.

*

* For more information, see Flow logs in the Global Accelerator Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceleratorAttributes withFlowLogsEnabled(Boolean flowLogsEnabled) { setFlowLogsEnabled(flowLogsEnabled); return this; } /** *

* Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified. *

*

* For more information, see Flow * logs in the Global Accelerator Developer Guide. *

* * @return Indicates whether flow logs are enabled. The default value is false. If the value is true, * FlowLogsS3Bucket and FlowLogsS3Prefix must be specified.

*

* For more information, see Flow logs in the Global Accelerator Developer Guide. */ public Boolean isFlowLogsEnabled() { return this.flowLogsEnabled; } /** *

* The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is * true. The bucket must exist and have a bucket policy that grants Global Accelerator permission to * write to the bucket. *

* * @param flowLogsS3Bucket * The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled * is true. The bucket must exist and have a bucket policy that grants Global Accelerator * permission to write to the bucket. */ public void setFlowLogsS3Bucket(String flowLogsS3Bucket) { this.flowLogsS3Bucket = flowLogsS3Bucket; } /** *

* The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is * true. The bucket must exist and have a bucket policy that grants Global Accelerator permission to * write to the bucket. *

* * @return The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled * is true. The bucket must exist and have a bucket policy that grants Global Accelerator * permission to write to the bucket. */ public String getFlowLogsS3Bucket() { return this.flowLogsS3Bucket; } /** *

* The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is * true. The bucket must exist and have a bucket policy that grants Global Accelerator permission to * write to the bucket. *

* * @param flowLogsS3Bucket * The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled * is true. The bucket must exist and have a bucket policy that grants Global Accelerator * permission to write to the bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceleratorAttributes withFlowLogsS3Bucket(String flowLogsS3Bucket) { setFlowLogsS3Bucket(flowLogsS3Bucket); return this; } /** *

* The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if * FlowLogsEnabled is true. *

*

* If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double * slash (//), like the following: *

*

* s3-bucket_name//AWSLogs/aws_account_id *

* * @param flowLogsS3Prefix * The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if * FlowLogsEnabled is true.

*

* If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a * double slash (//), like the following: *

*

* s3-bucket_name//AWSLogs/aws_account_id */ public void setFlowLogsS3Prefix(String flowLogsS3Prefix) { this.flowLogsS3Prefix = flowLogsS3Prefix; } /** *

* The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if * FlowLogsEnabled is true. *

*

* If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double * slash (//), like the following: *

*

* s3-bucket_name//AWSLogs/aws_account_id *

* * @return The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if * FlowLogsEnabled is true.

*

* If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a * double slash (//), like the following: *

*

* s3-bucket_name//AWSLogs/aws_account_id */ public String getFlowLogsS3Prefix() { return this.flowLogsS3Prefix; } /** *

* The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if * FlowLogsEnabled is true. *

*

* If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double * slash (//), like the following: *

*

* s3-bucket_name//AWSLogs/aws_account_id *

* * @param flowLogsS3Prefix * The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if * FlowLogsEnabled is true.

*

* If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a * double slash (//), like the following: *

*

* s3-bucket_name//AWSLogs/aws_account_id * @return Returns a reference to this object so that method calls can be chained together. */ public AcceleratorAttributes withFlowLogsS3Prefix(String flowLogsS3Prefix) { setFlowLogsS3Prefix(flowLogsS3Prefix); 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 (getFlowLogsEnabled() != null) sb.append("FlowLogsEnabled: ").append(getFlowLogsEnabled()).append(","); if (getFlowLogsS3Bucket() != null) sb.append("FlowLogsS3Bucket: ").append(getFlowLogsS3Bucket()).append(","); if (getFlowLogsS3Prefix() != null) sb.append("FlowLogsS3Prefix: ").append(getFlowLogsS3Prefix()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AcceleratorAttributes == false) return false; AcceleratorAttributes other = (AcceleratorAttributes) obj; if (other.getFlowLogsEnabled() == null ^ this.getFlowLogsEnabled() == null) return false; if (other.getFlowLogsEnabled() != null && other.getFlowLogsEnabled().equals(this.getFlowLogsEnabled()) == false) return false; if (other.getFlowLogsS3Bucket() == null ^ this.getFlowLogsS3Bucket() == null) return false; if (other.getFlowLogsS3Bucket() != null && other.getFlowLogsS3Bucket().equals(this.getFlowLogsS3Bucket()) == false) return false; if (other.getFlowLogsS3Prefix() == null ^ this.getFlowLogsS3Prefix() == null) return false; if (other.getFlowLogsS3Prefix() != null && other.getFlowLogsS3Prefix().equals(this.getFlowLogsS3Prefix()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFlowLogsEnabled() == null) ? 0 : getFlowLogsEnabled().hashCode()); hashCode = prime * hashCode + ((getFlowLogsS3Bucket() == null) ? 0 : getFlowLogsS3Bucket().hashCode()); hashCode = prime * hashCode + ((getFlowLogsS3Prefix() == null) ? 0 : getFlowLogsS3Prefix().hashCode()); return hashCode; } @Override public AcceleratorAttributes clone() { try { return (AcceleratorAttributes) 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.globalaccelerator.model.transform.AcceleratorAttributesMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy