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

com.amazonaws.services.cleanrooms.model.DifferentialPrivacySensitivityParameters Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
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.cleanrooms.model;

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

/**
 * 

* Provides the sensitivity parameters. *

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

* The type of aggregation function that was run. *

*/ private String aggregationType; /** *

* The aggregation expression that was run. *

*/ private String aggregationExpression; /** *

* The maximum number of rows contributed by a user in a SQL query. *

*/ private Integer userContributionLimit; /** *

* The lower bound of the aggregation expression. *

*/ private Float minColumnValue; /** *

* The upper bound of the aggregation expression. *

*/ private Float maxColumnValue; /** *

* The type of aggregation function that was run. *

* * @param aggregationType * The type of aggregation function that was run. * @see DifferentialPrivacyAggregationType */ public void setAggregationType(String aggregationType) { this.aggregationType = aggregationType; } /** *

* The type of aggregation function that was run. *

* * @return The type of aggregation function that was run. * @see DifferentialPrivacyAggregationType */ public String getAggregationType() { return this.aggregationType; } /** *

* The type of aggregation function that was run. *

* * @param aggregationType * The type of aggregation function that was run. * @return Returns a reference to this object so that method calls can be chained together. * @see DifferentialPrivacyAggregationType */ public DifferentialPrivacySensitivityParameters withAggregationType(String aggregationType) { setAggregationType(aggregationType); return this; } /** *

* The type of aggregation function that was run. *

* * @param aggregationType * The type of aggregation function that was run. * @return Returns a reference to this object so that method calls can be chained together. * @see DifferentialPrivacyAggregationType */ public DifferentialPrivacySensitivityParameters withAggregationType(DifferentialPrivacyAggregationType aggregationType) { this.aggregationType = aggregationType.toString(); return this; } /** *

* The aggregation expression that was run. *

* * @param aggregationExpression * The aggregation expression that was run. */ public void setAggregationExpression(String aggregationExpression) { this.aggregationExpression = aggregationExpression; } /** *

* The aggregation expression that was run. *

* * @return The aggregation expression that was run. */ public String getAggregationExpression() { return this.aggregationExpression; } /** *

* The aggregation expression that was run. *

* * @param aggregationExpression * The aggregation expression that was run. * @return Returns a reference to this object so that method calls can be chained together. */ public DifferentialPrivacySensitivityParameters withAggregationExpression(String aggregationExpression) { setAggregationExpression(aggregationExpression); return this; } /** *

* The maximum number of rows contributed by a user in a SQL query. *

* * @param userContributionLimit * The maximum number of rows contributed by a user in a SQL query. */ public void setUserContributionLimit(Integer userContributionLimit) { this.userContributionLimit = userContributionLimit; } /** *

* The maximum number of rows contributed by a user in a SQL query. *

* * @return The maximum number of rows contributed by a user in a SQL query. */ public Integer getUserContributionLimit() { return this.userContributionLimit; } /** *

* The maximum number of rows contributed by a user in a SQL query. *

* * @param userContributionLimit * The maximum number of rows contributed by a user in a SQL query. * @return Returns a reference to this object so that method calls can be chained together. */ public DifferentialPrivacySensitivityParameters withUserContributionLimit(Integer userContributionLimit) { setUserContributionLimit(userContributionLimit); return this; } /** *

* The lower bound of the aggregation expression. *

* * @param minColumnValue * The lower bound of the aggregation expression. */ public void setMinColumnValue(Float minColumnValue) { this.minColumnValue = minColumnValue; } /** *

* The lower bound of the aggregation expression. *

* * @return The lower bound of the aggregation expression. */ public Float getMinColumnValue() { return this.minColumnValue; } /** *

* The lower bound of the aggregation expression. *

* * @param minColumnValue * The lower bound of the aggregation expression. * @return Returns a reference to this object so that method calls can be chained together. */ public DifferentialPrivacySensitivityParameters withMinColumnValue(Float minColumnValue) { setMinColumnValue(minColumnValue); return this; } /** *

* The upper bound of the aggregation expression. *

* * @param maxColumnValue * The upper bound of the aggregation expression. */ public void setMaxColumnValue(Float maxColumnValue) { this.maxColumnValue = maxColumnValue; } /** *

* The upper bound of the aggregation expression. *

* * @return The upper bound of the aggregation expression. */ public Float getMaxColumnValue() { return this.maxColumnValue; } /** *

* The upper bound of the aggregation expression. *

* * @param maxColumnValue * The upper bound of the aggregation expression. * @return Returns a reference to this object so that method calls can be chained together. */ public DifferentialPrivacySensitivityParameters withMaxColumnValue(Float maxColumnValue) { setMaxColumnValue(maxColumnValue); 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 (getAggregationType() != null) sb.append("AggregationType: ").append(getAggregationType()).append(","); if (getAggregationExpression() != null) sb.append("AggregationExpression: ").append(getAggregationExpression()).append(","); if (getUserContributionLimit() != null) sb.append("UserContributionLimit: ").append(getUserContributionLimit()).append(","); if (getMinColumnValue() != null) sb.append("MinColumnValue: ").append(getMinColumnValue()).append(","); if (getMaxColumnValue() != null) sb.append("MaxColumnValue: ").append(getMaxColumnValue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DifferentialPrivacySensitivityParameters == false) return false; DifferentialPrivacySensitivityParameters other = (DifferentialPrivacySensitivityParameters) obj; if (other.getAggregationType() == null ^ this.getAggregationType() == null) return false; if (other.getAggregationType() != null && other.getAggregationType().equals(this.getAggregationType()) == false) return false; if (other.getAggregationExpression() == null ^ this.getAggregationExpression() == null) return false; if (other.getAggregationExpression() != null && other.getAggregationExpression().equals(this.getAggregationExpression()) == false) return false; if (other.getUserContributionLimit() == null ^ this.getUserContributionLimit() == null) return false; if (other.getUserContributionLimit() != null && other.getUserContributionLimit().equals(this.getUserContributionLimit()) == false) return false; if (other.getMinColumnValue() == null ^ this.getMinColumnValue() == null) return false; if (other.getMinColumnValue() != null && other.getMinColumnValue().equals(this.getMinColumnValue()) == false) return false; if (other.getMaxColumnValue() == null ^ this.getMaxColumnValue() == null) return false; if (other.getMaxColumnValue() != null && other.getMaxColumnValue().equals(this.getMaxColumnValue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAggregationType() == null) ? 0 : getAggregationType().hashCode()); hashCode = prime * hashCode + ((getAggregationExpression() == null) ? 0 : getAggregationExpression().hashCode()); hashCode = prime * hashCode + ((getUserContributionLimit() == null) ? 0 : getUserContributionLimit().hashCode()); hashCode = prime * hashCode + ((getMinColumnValue() == null) ? 0 : getMinColumnValue().hashCode()); hashCode = prime * hashCode + ((getMaxColumnValue() == null) ? 0 : getMaxColumnValue().hashCode()); return hashCode; } @Override public DifferentialPrivacySensitivityParameters clone() { try { return (DifferentialPrivacySensitivityParameters) 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.cleanrooms.model.transform.DifferentialPrivacySensitivityParametersMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy