/* * Copyright 2018-2023 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; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Provides information about the configuration, dimension, and other settings for a segment. *

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

* The unique identifier for the application that the segment is associated with. *

*/ private String applicationId; /** *

* The Amazon Resource Name (ARN) of the segment. *

*/ private String arn; /** *

* The date and time when the segment was created. *

*/ private String creationDate; /** *

* The dimension settings for the segment. *

*/ private SegmentDimensions dimensions; /** *

* The unique identifier for the segment. *

*/ private String id; /** *

* The settings for the import job that's associated with the segment. *

*/ private SegmentImportResource importDefinition; /** *

* The date and time when the segment was last modified. *

*/ private String lastModifiedDate; /** *

* The name of the segment. *

*/ private String name; /** *

* A list of one or more segment groups that apply to the segment. Each segment group consists of zero or more base * segments and the dimensions that are applied to those base segments. *

*/ private SegmentGroupList segmentGroups; /** *

* The segment type. Valid values are: *

* */ private String segmentType; /** *

* A string-to-string map of key-value pairs that identifies the tags that are associated with the segment. Each tag * consists of a required tag key and an associated tag value. *

*/ private java.util.Map tags; /** *

* The version number of the segment. *

*/ private Integer version; /** *

* The unique identifier for the application that the segment is associated with. *

* * @param applicationId * The unique identifier for the application that the segment is associated with. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The unique identifier for the application that the segment is associated with. *

* * @return The unique identifier for the application that the segment is associated with. */ public String getApplicationId() { return this.applicationId; } /** *

* The unique identifier for the application that the segment is associated with. *

* * @param applicationId * The unique identifier for the application that the segment is associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* The Amazon Resource Name (ARN) of the segment. *

* * @param arn * The Amazon Resource Name (ARN) of the segment. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the segment. *

* * @return The Amazon Resource Name (ARN) of the segment. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the segment. *

* * @param arn * The Amazon Resource Name (ARN) of the segment. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withArn(String arn) { setArn(arn); return this; } /** *

* The date and time when the segment was created. *

* * @param creationDate * The date and time when the segment was created. */ public void setCreationDate(String creationDate) { this.creationDate = creationDate; } /** *

* The date and time when the segment was created. *

* * @return The date and time when the segment was created. */ public String getCreationDate() { return this.creationDate; } /** *

* The date and time when the segment was created. *

* * @param creationDate * The date and time when the segment was created. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withCreationDate(String creationDate) { setCreationDate(creationDate); return this; } /** *

* The dimension settings for the segment. *

* * @param dimensions * The dimension settings for the segment. */ public void setDimensions(SegmentDimensions dimensions) { this.dimensions = dimensions; } /** *

* The dimension settings for the segment. *

* * @return The dimension settings for the segment. */ public SegmentDimensions getDimensions() { return this.dimensions; } /** *

* The dimension settings for the segment. *

* * @param dimensions * The dimension settings for the segment. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withDimensions(SegmentDimensions dimensions) { setDimensions(dimensions); return this; } /** *

* The unique identifier for the segment. *

* * @param id * The unique identifier for the segment. */ public void setId(String id) { this.id = id; } /** *

* The unique identifier for the segment. *

* * @return The unique identifier for the segment. */ public String getId() { return this.id; } /** *

* The unique identifier for the segment. *

* * @param id * The unique identifier for the segment. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withId(String id) { setId(id); return this; } /** *

* The settings for the import job that's associated with the segment. *

* * @param importDefinition * The settings for the import job that's associated with the segment. */ public void setImportDefinition(SegmentImportResource importDefinition) { this.importDefinition = importDefinition; } /** *

* The settings for the import job that's associated with the segment. *

* * @return The settings for the import job that's associated with the segment. */ public SegmentImportResource getImportDefinition() { return this.importDefinition; } /** *

* The settings for the import job that's associated with the segment. *

* * @param importDefinition * The settings for the import job that's associated with the segment. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withImportDefinition(SegmentImportResource importDefinition) { setImportDefinition(importDefinition); return this; } /** *

* The date and time when the segment was last modified. *

* * @param lastModifiedDate * The date and time when the segment was last modified. */ public void setLastModifiedDate(String lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** *

* The date and time when the segment was last modified. *

* * @return The date and time when the segment was last modified. */ public String getLastModifiedDate() { return this.lastModifiedDate; } /** *

* The date and time when the segment was last modified. *

* * @param lastModifiedDate * The date and time when the segment was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withLastModifiedDate(String lastModifiedDate) { setLastModifiedDate(lastModifiedDate); return this; } /** *

* The name of the segment. *

* * @param name * The name of the segment. */ public void setName(String name) { this.name = name; } /** *

* The name of the segment. *

* * @return The name of the segment. */ public String getName() { return this.name; } /** *

* The name of the segment. *

* * @param name * The name of the segment. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withName(String name) { setName(name); return this; } /** *

* A list of one or more segment groups that apply to the segment. Each segment group consists of zero or more base * segments and the dimensions that are applied to those base segments. *

* * @param segmentGroups * A list of one or more segment groups that apply to the segment. Each segment group consists of zero or * more base segments and the dimensions that are applied to those base segments. */ public void setSegmentGroups(SegmentGroupList segmentGroups) { this.segmentGroups = segmentGroups; } /** *

* A list of one or more segment groups that apply to the segment. Each segment group consists of zero or more base * segments and the dimensions that are applied to those base segments. *

* * @return A list of one or more segment groups that apply to the segment. Each segment group consists of zero or * more base segments and the dimensions that are applied to those base segments. */ public SegmentGroupList getSegmentGroups() { return this.segmentGroups; } /** *

* A list of one or more segment groups that apply to the segment. Each segment group consists of zero or more base * segments and the dimensions that are applied to those base segments. *

* * @param segmentGroups * A list of one or more segment groups that apply to the segment. Each segment group consists of zero or * more base segments and the dimensions that are applied to those base segments. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentResponse withSegmentGroups(SegmentGroupList segmentGroups) { setSegmentGroups(segmentGroups); return this; } /** *

* The segment type. Valid values are: *

* * * @param segmentType * The segment type. Valid values are:

*