/* * 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; /** *
* Specifies the dimensions for an event filter that determines when a campaign is sent or a journey activity is * performed. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EventDimensions implements Serializable, Cloneable, StructuredPojo { /** ** One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as * selection criteria when you create an event filter. *
*/ private java.util.Map* The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a * standard event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom * event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint * Events in the Amazon Pinpoint Developer Guide. *
*/ private SetDimension eventType; /** ** One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as * selection criteria when you create an event filter. *
*/ private java.util.Map* One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as * selection criteria when you create an event filter. *
* * @return One or more custom attributes that your application reports to Amazon Pinpoint. You can use these * attributes as selection criteria when you create an event filter. */ public java.util.Map* One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as * selection criteria when you create an event filter. *
* * @param attributes * One or more custom attributes that your application reports to Amazon Pinpoint. You can use these * attributes as selection criteria when you create an event filter. */ public void setAttributes(java.util.Map* One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as * selection criteria when you create an event filter. *
* * @param attributes * One or more custom attributes that your application reports to Amazon Pinpoint. You can use these * attributes as selection criteria when you create an event filter. * @return Returns a reference to this object so that method calls can be chained together. */ public EventDimensions withAttributes(java.util.Map* The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a * standard event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom * event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint * Events in the Amazon Pinpoint Developer Guide. *
* * @param eventType * The name of the event that causes the campaign to be sent or the journey activity to be performed. This * can be a standard event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can * also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon * Pinpoint Events in the Amazon Pinpoint Developer Guide. */ public void setEventType(SetDimension eventType) { this.eventType = eventType; } /** ** The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a * standard event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom * event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint * Events in the Amazon Pinpoint Developer Guide. *
* * @return The name of the event that causes the campaign to be sent or the journey activity to be performed. This * can be a standard event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can * also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon * Pinpoint Events in the Amazon Pinpoint Developer Guide. */ public SetDimension getEventType() { return this.eventType; } /** ** The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a * standard event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom * event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint * Events in the Amazon Pinpoint Developer Guide. *
* * @param eventType * The name of the event that causes the campaign to be sent or the journey activity to be performed. This * can be a standard event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can * also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon * Pinpoint Events in the Amazon Pinpoint Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public EventDimensions withEventType(SetDimension eventType) { setEventType(eventType); return this; } /** ** One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as * selection criteria when you create an event filter. *
* * @return One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as * selection criteria when you create an event filter. */ public java.util.Map* One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as * selection criteria when you create an event filter. *
* * @param metrics * One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as * selection criteria when you create an event filter. */ public void setMetrics(java.util.Map* One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as * selection criteria when you create an event filter. *
* * @param metrics * One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as * selection criteria when you create an event filter. * @return Returns a reference to this object so that method calls can be chained together. */ public EventDimensions withMetrics(java.util.Map