/** * <p> * Describes whether email sending is enabled or disabled for the configuration set. If the value is * <code>true</code>, then Amazon SES will send emails that use the configuration set. If the value is * <code>false</code>, Amazon SES will not send emails that use the configuration set. The default value is * <code>true</code>. You can change this setting using <a>UpdateConfigurationSetSendingEnabled</a>. * </p> * * @param sendingEnabled * Describes whether email sending is enabled or disabled for the configuration set. If the value is * <code>true</code>, then Amazon SES will send emails that use the configuration set. If the value is * <code>false</code>, Amazon SES will not send emails that use the configuration set. The default value is * <code>true</code>. You can change this setting using <a>UpdateConfigurationSetSendingEnabled</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public ReputationOptions withSendingEnabled(Boolean sendingEnabled) { setSendingEnabled(sendingEnabled); 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 email sending is enabled or disabled for the configuration set. If the value is * <code>true</code>, then Amazon SES will send emails that use the configuration set. If the value is * <code>false</code>, Amazon SES will not send emails that use the configuration set. The default value is * <code>true</code>. You can change this setting using <a>UpdateConfigurationSetSendingEnabled</a>. * </p> * * @param sendingEnabled * Describes whether email sending is enabled or disabled for the configuration set. If the value is * <code>true</code>, then Amazon SES will send emails that use the configuration set. If the value is * <code>false</code>, Amazon SES will not send emails that use the configuration set. The default value is * <code>true</code>. You can change this setting using <a>UpdateConfigurationSetSendingEnabled</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public ReputationOptions withSendingEnabled(Boolean sendingEnabled) { setSendingEnabled(sendingEnabled); return this; }
reputationOptions.setSendingEnabled(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; } } } }