public final class UpdateInboxRulesRequest extends SimpleServiceRequestBase<UpdateInboxRulesResponse>
Constructor and Description |
---|
UpdateInboxRulesRequest(ExchangeService service)
Initializes a new instance of the
|
Modifier and Type | Method and Description |
---|---|
UpdateInboxRulesResponse |
execute()
Executes this request.
|
protected Iterable<RuleOperation> |
getInboxRuleOperations()
Gets the RuleOperation collection.
|
protected String |
getMailboxSmtpAddress()
Gets the address of the mailbox in which to update the inbox rules.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
protected boolean |
getRemoveOutlookRuleBlob()
Gets a value indicating whether or not to
remove OutlookRuleBlob from the rule collection.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
protected UpdateInboxRulesResponse |
parseResponse(EwsServiceXmlReader reader)
Parses the response.
|
void |
setInboxRuleOperations(Iterable<RuleOperation> value)
Sets the RuleOperation collection.
|
void |
setMailboxSmtpAddress(String value)
Sets the address of the mailbox in which to update the inbox rules.
|
void |
setRemoveOutlookRuleBlob(boolean value)
Sets a value indicating whether or not to
remove OutlookRuleBlob from the rule collection.
|
protected void |
validate()
Validate request.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements.
|
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
public UpdateInboxRulesRequest(ExchangeService service) throws Exception
service
- The service.Exception
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<UpdateInboxRulesResponse>
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ServiceRequestBase<UpdateInboxRulesResponse>
writer
- The writer.Exception
- the exceptionprotected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<UpdateInboxRulesResponse>
protected UpdateInboxRulesResponse parseResponse(EwsServiceXmlReader reader) throws Exception
parseResponse
in class ServiceRequestBase<UpdateInboxRulesResponse>
reader
- The reader.Exception
- the exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<UpdateInboxRulesResponse>
protected void validate() throws Exception
validate
in class ServiceRequestBase<UpdateInboxRulesResponse>
ServiceLocalException
- the service local exceptionException
- the exceptionpublic UpdateInboxRulesResponse execute() throws Exception
Exception
- on errorprotected String getMailboxSmtpAddress()
public void setMailboxSmtpAddress(String value)
protected boolean getRemoveOutlookRuleBlob()
public void setRemoveOutlookRuleBlob(boolean value)
protected Iterable<RuleOperation> getInboxRuleOperations()
public void setInboxRuleOperations(Iterable<RuleOperation> value)
Copyright © 2012–2015 Microsoft. All rights reserved.