/** * <p> * Describes whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce and * complaint rates, to Amazon CloudWatch. * </p> * <p> * If the value is <code>true</code>, reputation metrics are published. If the value is <code>false</code>, * reputation metrics are not published. The default value is <code>false</code>. * </p> * * @param reputationMetricsEnabled * Describes whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce * and complaint rates, to Amazon CloudWatch.</p> * <p> * If the value is <code>true</code>, reputation metrics are published. If the value is <code>false</code>, * reputation metrics are not published. The default value is <code>false</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ReputationOptions withReputationMetricsEnabled(Boolean reputationMetricsEnabled) { setReputationMetricsEnabled(reputationMetricsEnabled); return this; }
public ReputationOptions unmarshall(StaxUnmarshallerContext context) throws Exception { ReputationOptions reputationOptions = new ReputationOptions(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return reputationOptions; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SendingEnabled", targetDepth)) { reputationOptions.setSendingEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ReputationMetricsEnabled", targetDepth)) { reputationOptions.setReputationMetricsEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("LastFreshStart", targetDepth)) { reputationOptions.setLastFreshStart(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return reputationOptions; } } } }
/** * <p> * Describes whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce and * complaint rates, to Amazon CloudWatch. * </p> * <p> * If the value is <code>true</code>, reputation metrics are published. If the value is <code>false</code>, * reputation metrics are not published. The default value is <code>false</code>. * </p> * * @param reputationMetricsEnabled * Describes whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce * and complaint rates, to Amazon CloudWatch.</p> * <p> * If the value is <code>true</code>, reputation metrics are published. If the value is <code>false</code>, * reputation metrics are not published. The default value is <code>false</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ReputationOptions withReputationMetricsEnabled(Boolean reputationMetricsEnabled) { setReputationMetricsEnabled(reputationMetricsEnabled); return this; }
reputationOptions.setReputationMetricsEnabled(BooleanStaxUnmarshaller .getInstance().unmarshall(context)); continue;
public ReputationOptions unmarshall(StaxUnmarshallerContext context) throws Exception { ReputationOptions reputationOptions = new ReputationOptions(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return reputationOptions; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SendingEnabled", targetDepth)) { reputationOptions.setSendingEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ReputationMetricsEnabled", targetDepth)) { reputationOptions.setReputationMetricsEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("LastFreshStart", targetDepth)) { reputationOptions.setLastFreshStart(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return reputationOptions; } } } }