/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object that contains information about email that was sent from the selected domain. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OverallVolume implements Serializable, Cloneable, StructuredPojo { /** ** An object that contains information about the numbers of messages that arrived in recipients' inboxes and junk * mail folders. *
*/ private VolumeStatistics volumeStatistics; /** ** The percentage of emails that were sent from the domain that were read by their recipients. *
*/ private Double readRatePercent; /** ** An object that contains inbox and junk mail placement metrics for individual email providers. *
*/ private java.util.List* An object that contains information about the numbers of messages that arrived in recipients' inboxes and junk * mail folders. *
* * @param volumeStatistics * An object that contains information about the numbers of messages that arrived in recipients' inboxes and * junk mail folders. */ public void setVolumeStatistics(VolumeStatistics volumeStatistics) { this.volumeStatistics = volumeStatistics; } /** ** An object that contains information about the numbers of messages that arrived in recipients' inboxes and junk * mail folders. *
* * @return An object that contains information about the numbers of messages that arrived in recipients' inboxes and * junk mail folders. */ public VolumeStatistics getVolumeStatistics() { return this.volumeStatistics; } /** ** An object that contains information about the numbers of messages that arrived in recipients' inboxes and junk * mail folders. *
* * @param volumeStatistics * An object that contains information about the numbers of messages that arrived in recipients' inboxes and * junk mail folders. * @return Returns a reference to this object so that method calls can be chained together. */ public OverallVolume withVolumeStatistics(VolumeStatistics volumeStatistics) { setVolumeStatistics(volumeStatistics); return this; } /** ** The percentage of emails that were sent from the domain that were read by their recipients. *
* * @param readRatePercent * The percentage of emails that were sent from the domain that were read by their recipients. */ public void setReadRatePercent(Double readRatePercent) { this.readRatePercent = readRatePercent; } /** ** The percentage of emails that were sent from the domain that were read by their recipients. *
* * @return The percentage of emails that were sent from the domain that were read by their recipients. */ public Double getReadRatePercent() { return this.readRatePercent; } /** ** The percentage of emails that were sent from the domain that were read by their recipients. *
* * @param readRatePercent * The percentage of emails that were sent from the domain that were read by their recipients. * @return Returns a reference to this object so that method calls can be chained together. */ public OverallVolume withReadRatePercent(Double readRatePercent) { setReadRatePercent(readRatePercent); return this; } /** ** An object that contains inbox and junk mail placement metrics for individual email providers. *
* * @return An object that contains inbox and junk mail placement metrics for individual email providers. */ public java.util.List* An object that contains inbox and junk mail placement metrics for individual email providers. *
* * @param domainIspPlacements * An object that contains inbox and junk mail placement metrics for individual email providers. */ public void setDomainIspPlacements(java.util.Collection* An object that contains inbox and junk mail placement metrics for individual email providers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDomainIspPlacements(java.util.Collection)} or {@link #withDomainIspPlacements(java.util.Collection)} * if you want to override the existing values. *
* * @param domainIspPlacements * An object that contains inbox and junk mail placement metrics for individual email providers. * @return Returns a reference to this object so that method calls can be chained together. */ public OverallVolume withDomainIspPlacements(DomainIspPlacement... domainIspPlacements) { if (this.domainIspPlacements == null) { setDomainIspPlacements(new java.util.ArrayList* An object that contains inbox and junk mail placement metrics for individual email providers. *
* * @param domainIspPlacements * An object that contains inbox and junk mail placement metrics for individual email providers. * @return Returns a reference to this object so that method calls can be chained together. */ public OverallVolume withDomainIspPlacements(java.util.Collection