/* * Copyright 2010-2019 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.pinpoint.model; import java.io.Serializable; /** * Dimension specification of a segment. */ public class SetDimension implements Serializable { /** * The type of dimension: INCLUSIVE - Endpoints that match the criteria are * included in the segment. EXCLUSIVE - Endpoints that match the criteria * are excluded from the segment. *
* Constraints:
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param values The criteria values for the segment dimension. Endpoints
* with matching attribute values are included or excluded from
* the segment, depending on the setting for Type.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public SetDimension withValues(String... values) {
if (getValues() == null) {
this.values = new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param values The criteria values for the segment dimension. Endpoints
* with matching attribute values are included or excluded from
* the segment, depending on the setting for Type.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public SetDimension withValues(java.util.Collection
* Allowed Values: INCLUSIVE, EXCLUSIVE
*/
private String dimensionType;
/**
* The criteria values for the segment dimension. Endpoints with matching
* attribute values are included or excluded from the segment, depending on
* the setting for Type.
*/
private java.util.List
* Allowed Values: INCLUSIVE, EXCLUSIVE
*
* @return The type of dimension: INCLUSIVE - Endpoints that match the
* criteria are included in the segment. EXCLUSIVE - Endpoints that
* match the criteria are excluded from the segment.
* @see DimensionType
*/
public String getDimensionType() {
return dimensionType;
}
/**
* The type of dimension: INCLUSIVE - Endpoints that match the criteria are
* included in the segment. EXCLUSIVE - Endpoints that match the criteria
* are excluded from the segment.
*
* Allowed Values: INCLUSIVE, EXCLUSIVE
*
* @param dimensionType The type of dimension: INCLUSIVE - Endpoints that
* match the criteria are included in the segment. EXCLUSIVE -
* Endpoints that match the criteria are excluded from the
* segment.
* @see DimensionType
*/
public void setDimensionType(String dimensionType) {
this.dimensionType = dimensionType;
}
/**
* The type of dimension: INCLUSIVE - Endpoints that match the criteria are
* included in the segment. EXCLUSIVE - Endpoints that match the criteria
* are excluded from the segment.
*
* Allowed Values: INCLUSIVE, EXCLUSIVE
*
* @param dimensionType The type of dimension: INCLUSIVE - Endpoints that
* match the criteria are included in the segment. EXCLUSIVE -
* Endpoints that match the criteria are excluded from the
* segment.
* @return A reference to this updated object so that method calls can be
* chained together.
* @see DimensionType
*/
public SetDimension withDimensionType(String dimensionType) {
this.dimensionType = dimensionType;
return this;
}
/**
* The type of dimension: INCLUSIVE - Endpoints that match the criteria are
* included in the segment. EXCLUSIVE - Endpoints that match the criteria
* are excluded from the segment.
*
* Allowed Values: INCLUSIVE, EXCLUSIVE
*
* @param dimensionType The type of dimension: INCLUSIVE - Endpoints that
* match the criteria are included in the segment. EXCLUSIVE -
* Endpoints that match the criteria are excluded from the
* segment.
* @see DimensionType
*/
public void setDimensionType(DimensionType dimensionType) {
this.dimensionType = dimensionType.toString();
}
/**
* The type of dimension: INCLUSIVE - Endpoints that match the criteria are
* included in the segment. EXCLUSIVE - Endpoints that match the criteria
* are excluded from the segment.
*
* Allowed Values: INCLUSIVE, EXCLUSIVE
*
* @param dimensionType The type of dimension: INCLUSIVE - Endpoints that
* match the criteria are included in the segment. EXCLUSIVE -
* Endpoints that match the criteria are excluded from the
* segment.
* @return A reference to this updated object so that method calls can be
* chained together.
* @see DimensionType
*/
public SetDimension withDimensionType(DimensionType dimensionType) {
this.dimensionType = dimensionType.toString();
return this;
}
/**
* The criteria values for the segment dimension. Endpoints with matching
* attribute values are included or excluded from the segment, depending on
* the setting for Type.
*
* @return The criteria values for the segment dimension. Endpoints with
* matching attribute values are included or excluded from the
* segment, depending on the setting for Type.
*/
public java.util.List