/* * 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; /** *
* The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should be * set to true. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ClosedDays implements Serializable, Cloneable, StructuredPojo { /** ** Rules for the Email channel. *
*/ private java.util.List* Rules for the SMS channel. *
*/ private java.util.List* Rules for the Push channel. *
*/ private java.util.List* Rules for the Voice channel. *
*/ private java.util.List* Rules for the Custom channel. *
*/ private java.util.List* Rules for the Email channel. *
* * @return Rules for the Email channel. */ public java.util.List* Rules for the Email channel. *
* * @param eMAIL * Rules for the Email channel. */ public void setEMAIL(java.util.Collection* Rules for the Email channel. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEMAIL(java.util.Collection)} or {@link #withEMAIL(java.util.Collection)} if you want to override the * existing values. *
* * @param eMAIL * Rules for the Email channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withEMAIL(ClosedDaysRule... eMAIL) { if (this.eMAIL == null) { setEMAIL(new java.util.ArrayList* Rules for the Email channel. *
* * @param eMAIL * Rules for the Email channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withEMAIL(java.util.Collection* Rules for the SMS channel. *
* * @return Rules for the SMS channel. */ public java.util.List* Rules for the SMS channel. *
* * @param sMS * Rules for the SMS channel. */ public void setSMS(java.util.Collection* Rules for the SMS channel. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSMS(java.util.Collection)} or {@link #withSMS(java.util.Collection)} if you want to override the * existing values. *
* * @param sMS * Rules for the SMS channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withSMS(ClosedDaysRule... sMS) { if (this.sMS == null) { setSMS(new java.util.ArrayList* Rules for the SMS channel. *
* * @param sMS * Rules for the SMS channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withSMS(java.util.Collection* Rules for the Push channel. *
* * @return Rules for the Push channel. */ public java.util.List* Rules for the Push channel. *
* * @param pUSH * Rules for the Push channel. */ public void setPUSH(java.util.Collection* Rules for the Push channel. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPUSH(java.util.Collection)} or {@link #withPUSH(java.util.Collection)} if you want to override the * existing values. *
* * @param pUSH * Rules for the Push channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withPUSH(ClosedDaysRule... pUSH) { if (this.pUSH == null) { setPUSH(new java.util.ArrayList* Rules for the Push channel. *
* * @param pUSH * Rules for the Push channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withPUSH(java.util.Collection* Rules for the Voice channel. *
* * @return Rules for the Voice channel. */ public java.util.List* Rules for the Voice channel. *
* * @param vOICE * Rules for the Voice channel. */ public void setVOICE(java.util.Collection* Rules for the Voice channel. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVOICE(java.util.Collection)} or {@link #withVOICE(java.util.Collection)} if you want to override the * existing values. *
* * @param vOICE * Rules for the Voice channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withVOICE(ClosedDaysRule... vOICE) { if (this.vOICE == null) { setVOICE(new java.util.ArrayList* Rules for the Voice channel. *
* * @param vOICE * Rules for the Voice channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withVOICE(java.util.Collection* Rules for the Custom channel. *
* * @return Rules for the Custom channel. */ public java.util.List* Rules for the Custom channel. *
* * @param cUSTOM * Rules for the Custom channel. */ public void setCUSTOM(java.util.Collection* Rules for the Custom channel. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCUSTOM(java.util.Collection)} or {@link #withCUSTOM(java.util.Collection)} if you want to override the * existing values. *
* * @param cUSTOM * Rules for the Custom channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withCUSTOM(ClosedDaysRule... cUSTOM) { if (this.cUSTOM == null) { setCUSTOM(new java.util.ArrayList* Rules for the Custom channel. *
* * @param cUSTOM * Rules for the Custom channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ClosedDays withCUSTOM(java.util.Collection