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

com.amazonaws.services.customerprofiles.model.ScheduledTriggerProperties Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Connect Customer Profiles module holds the client classes that are used for communicating with Amazon Connect Customer Profiles Service

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

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

/**
 * 

* Specifies the configuration details of a scheduled-trigger flow that you define. Currently, these settings only apply * to the scheduled-trigger type. *

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

* The scheduling expression that determines the rate at which the schedule will run, for example rate (5 minutes). *

*/ private String scheduleExpression; /** *

* Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow * run. *

*/ private String dataPullMode; /** *

* Specifies the scheduled start time for a scheduled-trigger flow. *

*/ private java.util.Date scheduleStartTime; /** *

* Specifies the scheduled end time for a scheduled-trigger flow. *

*/ private java.util.Date scheduleEndTime; /** *

* Specifies the time zone used when referring to the date and time of a scheduled-triggered flow, such as * America/New_York. *

*/ private String timezone; /** *

* Specifies the optional offset that is added to the time interval for a schedule-triggered flow. *

*/ private Long scheduleOffset; /** *

* Specifies the date range for the records to import from the connector in the first flow run. *

*/ private java.util.Date firstExecutionFrom; /** *

* The scheduling expression that determines the rate at which the schedule will run, for example rate (5 minutes). *

* * @param scheduleExpression * The scheduling expression that determines the rate at which the schedule will run, for example rate (5 * minutes). */ public void setScheduleExpression(String scheduleExpression) { this.scheduleExpression = scheduleExpression; } /** *

* The scheduling expression that determines the rate at which the schedule will run, for example rate (5 minutes). *

* * @return The scheduling expression that determines the rate at which the schedule will run, for example rate (5 * minutes). */ public String getScheduleExpression() { return this.scheduleExpression; } /** *

* The scheduling expression that determines the rate at which the schedule will run, for example rate (5 minutes). *

* * @param scheduleExpression * The scheduling expression that determines the rate at which the schedule will run, for example rate (5 * minutes). * @return Returns a reference to this object so that method calls can be chained together. */ public ScheduledTriggerProperties withScheduleExpression(String scheduleExpression) { setScheduleExpression(scheduleExpression); return this; } /** *

* Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow * run. *

* * @param dataPullMode * Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each * flow run. * @see DataPullMode */ public void setDataPullMode(String dataPullMode) { this.dataPullMode = dataPullMode; } /** *

* Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow * run. *

* * @return Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each * flow run. * @see DataPullMode */ public String getDataPullMode() { return this.dataPullMode; } /** *

* Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow * run. *

* * @param dataPullMode * Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each * flow run. * @return Returns a reference to this object so that method calls can be chained together. * @see DataPullMode */ public ScheduledTriggerProperties withDataPullMode(String dataPullMode) { setDataPullMode(dataPullMode); return this; } /** *

* Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow * run. *

* * @param dataPullMode * Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each * flow run. * @return Returns a reference to this object so that method calls can be chained together. * @see DataPullMode */ public ScheduledTriggerProperties withDataPullMode(DataPullMode dataPullMode) { this.dataPullMode = dataPullMode.toString(); return this; } /** *

* Specifies the scheduled start time for a scheduled-trigger flow. *

* * @param scheduleStartTime * Specifies the scheduled start time for a scheduled-trigger flow. */ public void setScheduleStartTime(java.util.Date scheduleStartTime) { this.scheduleStartTime = scheduleStartTime; } /** *

* Specifies the scheduled start time for a scheduled-trigger flow. *

* * @return Specifies the scheduled start time for a scheduled-trigger flow. */ public java.util.Date getScheduleStartTime() { return this.scheduleStartTime; } /** *

* Specifies the scheduled start time for a scheduled-trigger flow. *

* * @param scheduleStartTime * Specifies the scheduled start time for a scheduled-trigger flow. * @return Returns a reference to this object so that method calls can be chained together. */ public ScheduledTriggerProperties withScheduleStartTime(java.util.Date scheduleStartTime) { setScheduleStartTime(scheduleStartTime); return this; } /** *

* Specifies the scheduled end time for a scheduled-trigger flow. *

* * @param scheduleEndTime * Specifies the scheduled end time for a scheduled-trigger flow. */ public void setScheduleEndTime(java.util.Date scheduleEndTime) { this.scheduleEndTime = scheduleEndTime; } /** *

* Specifies the scheduled end time for a scheduled-trigger flow. *

* * @return Specifies the scheduled end time for a scheduled-trigger flow. */ public java.util.Date getScheduleEndTime() { return this.scheduleEndTime; } /** *

* Specifies the scheduled end time for a scheduled-trigger flow. *

* * @param scheduleEndTime * Specifies the scheduled end time for a scheduled-trigger flow. * @return Returns a reference to this object so that method calls can be chained together. */ public ScheduledTriggerProperties withScheduleEndTime(java.util.Date scheduleEndTime) { setScheduleEndTime(scheduleEndTime); return this; } /** *

* Specifies the time zone used when referring to the date and time of a scheduled-triggered flow, such as * America/New_York. *

* * @param timezone * Specifies the time zone used when referring to the date and time of a scheduled-triggered flow, such as * America/New_York. */ public void setTimezone(String timezone) { this.timezone = timezone; } /** *

* Specifies the time zone used when referring to the date and time of a scheduled-triggered flow, such as * America/New_York. *

* * @return Specifies the time zone used when referring to the date and time of a scheduled-triggered flow, such as * America/New_York. */ public String getTimezone() { return this.timezone; } /** *

* Specifies the time zone used when referring to the date and time of a scheduled-triggered flow, such as * America/New_York. *

* * @param timezone * Specifies the time zone used when referring to the date and time of a scheduled-triggered flow, such as * America/New_York. * @return Returns a reference to this object so that method calls can be chained together. */ public ScheduledTriggerProperties withTimezone(String timezone) { setTimezone(timezone); return this; } /** *

* Specifies the optional offset that is added to the time interval for a schedule-triggered flow. *

* * @param scheduleOffset * Specifies the optional offset that is added to the time interval for a schedule-triggered flow. */ public void setScheduleOffset(Long scheduleOffset) { this.scheduleOffset = scheduleOffset; } /** *

* Specifies the optional offset that is added to the time interval for a schedule-triggered flow. *

* * @return Specifies the optional offset that is added to the time interval for a schedule-triggered flow. */ public Long getScheduleOffset() { return this.scheduleOffset; } /** *

* Specifies the optional offset that is added to the time interval for a schedule-triggered flow. *

* * @param scheduleOffset * Specifies the optional offset that is added to the time interval for a schedule-triggered flow. * @return Returns a reference to this object so that method calls can be chained together. */ public ScheduledTriggerProperties withScheduleOffset(Long scheduleOffset) { setScheduleOffset(scheduleOffset); return this; } /** *

* Specifies the date range for the records to import from the connector in the first flow run. *

* * @param firstExecutionFrom * Specifies the date range for the records to import from the connector in the first flow run. */ public void setFirstExecutionFrom(java.util.Date firstExecutionFrom) { this.firstExecutionFrom = firstExecutionFrom; } /** *

* Specifies the date range for the records to import from the connector in the first flow run. *

* * @return Specifies the date range for the records to import from the connector in the first flow run. */ public java.util.Date getFirstExecutionFrom() { return this.firstExecutionFrom; } /** *

* Specifies the date range for the records to import from the connector in the first flow run. *

* * @param firstExecutionFrom * Specifies the date range for the records to import from the connector in the first flow run. * @return Returns a reference to this object so that method calls can be chained together. */ public ScheduledTriggerProperties withFirstExecutionFrom(java.util.Date firstExecutionFrom) { setFirstExecutionFrom(firstExecutionFrom); 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 (getScheduleExpression() != null) sb.append("ScheduleExpression: ").append(getScheduleExpression()).append(","); if (getDataPullMode() != null) sb.append("DataPullMode: ").append(getDataPullMode()).append(","); if (getScheduleStartTime() != null) sb.append("ScheduleStartTime: ").append(getScheduleStartTime()).append(","); if (getScheduleEndTime() != null) sb.append("ScheduleEndTime: ").append(getScheduleEndTime()).append(","); if (getTimezone() != null) sb.append("Timezone: ").append(getTimezone()).append(","); if (getScheduleOffset() != null) sb.append("ScheduleOffset: ").append(getScheduleOffset()).append(","); if (getFirstExecutionFrom() != null) sb.append("FirstExecutionFrom: ").append(getFirstExecutionFrom()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ScheduledTriggerProperties == false) return false; ScheduledTriggerProperties other = (ScheduledTriggerProperties) obj; if (other.getScheduleExpression() == null ^ this.getScheduleExpression() == null) return false; if (other.getScheduleExpression() != null && other.getScheduleExpression().equals(this.getScheduleExpression()) == false) return false; if (other.getDataPullMode() == null ^ this.getDataPullMode() == null) return false; if (other.getDataPullMode() != null && other.getDataPullMode().equals(this.getDataPullMode()) == false) return false; if (other.getScheduleStartTime() == null ^ this.getScheduleStartTime() == null) return false; if (other.getScheduleStartTime() != null && other.getScheduleStartTime().equals(this.getScheduleStartTime()) == false) return false; if (other.getScheduleEndTime() == null ^ this.getScheduleEndTime() == null) return false; if (other.getScheduleEndTime() != null && other.getScheduleEndTime().equals(this.getScheduleEndTime()) == false) return false; if (other.getTimezone() == null ^ this.getTimezone() == null) return false; if (other.getTimezone() != null && other.getTimezone().equals(this.getTimezone()) == false) return false; if (other.getScheduleOffset() == null ^ this.getScheduleOffset() == null) return false; if (other.getScheduleOffset() != null && other.getScheduleOffset().equals(this.getScheduleOffset()) == false) return false; if (other.getFirstExecutionFrom() == null ^ this.getFirstExecutionFrom() == null) return false; if (other.getFirstExecutionFrom() != null && other.getFirstExecutionFrom().equals(this.getFirstExecutionFrom()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getScheduleExpression() == null) ? 0 : getScheduleExpression().hashCode()); hashCode = prime * hashCode + ((getDataPullMode() == null) ? 0 : getDataPullMode().hashCode()); hashCode = prime * hashCode + ((getScheduleStartTime() == null) ? 0 : getScheduleStartTime().hashCode()); hashCode = prime * hashCode + ((getScheduleEndTime() == null) ? 0 : getScheduleEndTime().hashCode()); hashCode = prime * hashCode + ((getTimezone() == null) ? 0 : getTimezone().hashCode()); hashCode = prime * hashCode + ((getScheduleOffset() == null) ? 0 : getScheduleOffset().hashCode()); hashCode = prime * hashCode + ((getFirstExecutionFrom() == null) ? 0 : getFirstExecutionFrom().hashCode()); return hashCode; } @Override public ScheduledTriggerProperties clone() { try { return (ScheduledTriggerProperties) 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.customerprofiles.model.transform.ScheduledTriggerPropertiesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy