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

com.amazonaws.services.pinpointemail.model.ListDomainDeliverabilityCampaignsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Pinpoint Email module holds the client classes that are used for communicating with Amazon Pinpoint Email Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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.pinpointemail.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Retrieve deliverability data for all the campaigns that used a specific domain to send email during a specified time * range. This data is available for a domain only if you enabled the Deliverability dashboard ( * PutDeliverabilityDashboardOption operation) for the domain. *

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

* The first day, in Unix time format, that you want to obtain deliverability data for. *

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

* The last day, in Unix time format, that you want to obtain deliverability data for. This value has to be less * than or equal to 30 days after the value of the StartDate parameter. *

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

* The domain to obtain deliverability data for. *

*/ private String subscribedDomain; /** *

* A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns operation. * This token indicates the position of a campaign in the list of campaigns. *

*/ private String nextToken; /** *

* The maximum number of results to include in response to a single call to the * ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the number that * you specify in this parameter, the response includes a NextToken element, which you can use to * obtain additional results. *

*/ private Integer pageSize; /** *

* The first day, in Unix time format, that you want to obtain deliverability data for. *

* * @param startDate * The first day, in Unix time format, that you want to obtain deliverability data for. */ public void setStartDate(java.util.Date startDate) { this.startDate = startDate; } /** *

* The first day, in Unix time format, that you want to obtain deliverability data for. *

* * @return The first day, in Unix time format, that you want to obtain deliverability data for. */ public java.util.Date getStartDate() { return this.startDate; } /** *

* The first day, in Unix time format, that you want to obtain deliverability data for. *

* * @param startDate * The first day, in Unix time format, that you want to obtain deliverability data for. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainDeliverabilityCampaignsRequest withStartDate(java.util.Date startDate) { setStartDate(startDate); return this; } /** *

* The last day, in Unix time format, that you want to obtain deliverability data for. This value has to be less * than or equal to 30 days after the value of the StartDate parameter. *

* * @param endDate * The last day, in Unix time format, that you want to obtain deliverability data for. This value has to be * less than or equal to 30 days after the value of the StartDate parameter. */ public void setEndDate(java.util.Date endDate) { this.endDate = endDate; } /** *

* The last day, in Unix time format, that you want to obtain deliverability data for. This value has to be less * than or equal to 30 days after the value of the StartDate parameter. *

* * @return The last day, in Unix time format, that you want to obtain deliverability data for. This value has to be * less than or equal to 30 days after the value of the StartDate parameter. */ public java.util.Date getEndDate() { return this.endDate; } /** *

* The last day, in Unix time format, that you want to obtain deliverability data for. This value has to be less * than or equal to 30 days after the value of the StartDate parameter. *

* * @param endDate * The last day, in Unix time format, that you want to obtain deliverability data for. This value has to be * less than or equal to 30 days after the value of the StartDate parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainDeliverabilityCampaignsRequest withEndDate(java.util.Date endDate) { setEndDate(endDate); return this; } /** *

* The domain to obtain deliverability data for. *

* * @param subscribedDomain * The domain to obtain deliverability data for. */ public void setSubscribedDomain(String subscribedDomain) { this.subscribedDomain = subscribedDomain; } /** *

* The domain to obtain deliverability data for. *

* * @return The domain to obtain deliverability data for. */ public String getSubscribedDomain() { return this.subscribedDomain; } /** *

* The domain to obtain deliverability data for. *

* * @param subscribedDomain * The domain to obtain deliverability data for. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainDeliverabilityCampaignsRequest withSubscribedDomain(String subscribedDomain) { setSubscribedDomain(subscribedDomain); return this; } /** *

* A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns operation. * This token indicates the position of a campaign in the list of campaigns. *

* * @param nextToken * A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns * operation. This token indicates the position of a campaign in the list of campaigns. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns operation. * This token indicates the position of a campaign in the list of campaigns. *

* * @return A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns * operation. This token indicates the position of a campaign in the list of campaigns. */ public String getNextToken() { return this.nextToken; } /** *

* A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns operation. * This token indicates the position of a campaign in the list of campaigns. *

* * @param nextToken * A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns * operation. This token indicates the position of a campaign in the list of campaigns. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainDeliverabilityCampaignsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The maximum number of results to include in response to a single call to the * ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the number that * you specify in this parameter, the response includes a NextToken element, which you can use to * obtain additional results. *

* * @param pageSize * The maximum number of results to include in response to a single call to the * ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the * number that you specify in this parameter, the response includes a NextToken element, which * you can use to obtain additional results. */ public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } /** *

* The maximum number of results to include in response to a single call to the * ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the number that * you specify in this parameter, the response includes a NextToken element, which you can use to * obtain additional results. *

* * @return The maximum number of results to include in response to a single call to the * ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the * number that you specify in this parameter, the response includes a NextToken element, which * you can use to obtain additional results. */ public Integer getPageSize() { return this.pageSize; } /** *

* The maximum number of results to include in response to a single call to the * ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the number that * you specify in this parameter, the response includes a NextToken element, which you can use to * obtain additional results. *

* * @param pageSize * The maximum number of results to include in response to a single call to the * ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the * number that you specify in this parameter, the response includes a NextToken element, which * you can use to obtain additional results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainDeliverabilityCampaignsRequest withPageSize(Integer pageSize) { setPageSize(pageSize); 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 (getStartDate() != null) sb.append("StartDate: ").append(getStartDate()).append(","); if (getEndDate() != null) sb.append("EndDate: ").append(getEndDate()).append(","); if (getSubscribedDomain() != null) sb.append("SubscribedDomain: ").append(getSubscribedDomain()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getPageSize() != null) sb.append("PageSize: ").append(getPageSize()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListDomainDeliverabilityCampaignsRequest == false) return false; ListDomainDeliverabilityCampaignsRequest other = (ListDomainDeliverabilityCampaignsRequest) obj; if (other.getStartDate() == null ^ this.getStartDate() == null) return false; if (other.getStartDate() != null && other.getStartDate().equals(this.getStartDate()) == false) return false; if (other.getEndDate() == null ^ this.getEndDate() == null) return false; if (other.getEndDate() != null && other.getEndDate().equals(this.getEndDate()) == false) return false; if (other.getSubscribedDomain() == null ^ this.getSubscribedDomain() == null) return false; if (other.getSubscribedDomain() != null && other.getSubscribedDomain().equals(this.getSubscribedDomain()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getPageSize() == null ^ this.getPageSize() == null) return false; if (other.getPageSize() != null && other.getPageSize().equals(this.getPageSize()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStartDate() == null) ? 0 : getStartDate().hashCode()); hashCode = prime * hashCode + ((getEndDate() == null) ? 0 : getEndDate().hashCode()); hashCode = prime * hashCode + ((getSubscribedDomain() == null) ? 0 : getSubscribedDomain().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().hashCode()); return hashCode; } @Override public ListDomainDeliverabilityCampaignsRequest clone() { return (ListDomainDeliverabilityCampaignsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy