Class UpdateInboxRulesRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<UpdateInboxRulesResponse>
-
- microsoft.exchange.webservices.data.core.request.UpdateInboxRulesRequest
-
public final class UpdateInboxRulesRequest extends SimpleServiceRequestBase<UpdateInboxRulesResponse>
Represents a UpdateInboxRulesRequest request.
-
-
Constructor Summary
Constructors Constructor Description UpdateInboxRulesRequest(ExchangeService service)Initializes a new instance of theUpdateInboxRulesRequestclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateInboxRulesResponseexecute()Executes this request.protected Iterable<RuleOperation>getInboxRuleOperations()Gets the RuleOperation collection.protected StringgetMailboxSmtpAddress()Gets the address of the mailbox in which to update the inbox rules.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.protected booleangetRemoveOutlookRuleBlob()Gets a value indicating whether or not to remove OutlookRuleBlob from the rule collection.protected StringgetResponseXmlElementName()Gets the name of the response XML element.StringgetXmlElementName()Gets the name of the XML element.protected UpdateInboxRulesResponseparseResponse(EwsServiceXmlReader reader)Parses the response.voidsetInboxRuleOperations(Iterable<RuleOperation> value)Sets the RuleOperation collection.voidsetMailboxSmtpAddress(String value)Sets the address of the mailbox in which to update the inbox rules.voidsetRemoveOutlookRuleBlob(boolean value)Sets a value indicating whether or not to remove OutlookRuleBlob from the rule collection.protected voidvalidate()Validate request.protected voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes XML elements.-
Methods inherited from class microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase
beginExecute, endInternalExecute, internalExecute
-
Methods inherited from class microsoft.exchange.webservices.data.core.request.ServiceRequestBase
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
-
-
-
-
Constructor Detail
-
UpdateInboxRulesRequest
public UpdateInboxRulesRequest(ExchangeService service) throws Exception
Initializes a new instance of theUpdateInboxRulesRequestclass.- Parameters:
service- The service.- Throws:
Exception
-
-
Method Detail
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classServiceRequestBase<UpdateInboxRulesResponse>- Returns:
- XML element name.
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes XML elements.- Specified by:
writeElementsToXmlin classServiceRequestBase<UpdateInboxRulesResponse>- Parameters:
writer- The writer.- Throws:
Exception- the exception
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<UpdateInboxRulesResponse>- Returns:
- XML element name.
-
parseResponse
protected UpdateInboxRulesResponse parseResponse(EwsServiceXmlReader reader) throws Exception
Parses the response.- Specified by:
parseResponsein classServiceRequestBase<UpdateInboxRulesResponse>- Parameters:
reader- The reader.- Returns:
- the Response Object.
- Throws:
Exception- the exception
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<UpdateInboxRulesResponse>- Returns:
- Earliest Exchange version in which this request is supported.
-
validate
protected void validate() throws Exception
Validate request.- Overrides:
validatein classServiceRequestBase<UpdateInboxRulesResponse>- Throws:
ServiceLocalException- the service local exceptionException- the exception
-
execute
public UpdateInboxRulesResponse execute() throws Exception
Executes this request.- Returns:
- Service response.
- Throws:
Exception- on error
-
getMailboxSmtpAddress
protected String getMailboxSmtpAddress()
Gets the address of the mailbox in which to update the inbox rules.
-
setMailboxSmtpAddress
public void setMailboxSmtpAddress(String value)
Sets the address of the mailbox in which to update the inbox rules.
-
getRemoveOutlookRuleBlob
protected boolean getRemoveOutlookRuleBlob()
Gets a value indicating whether or not to remove OutlookRuleBlob from the rule collection.
-
setRemoveOutlookRuleBlob
public void setRemoveOutlookRuleBlob(boolean value)
Sets a value indicating whether or not to remove OutlookRuleBlob from the rule collection.
-
getInboxRuleOperations
protected Iterable<RuleOperation> getInboxRuleOperations()
Gets the RuleOperation collection.
-
setInboxRuleOperations
public void setInboxRuleOperations(Iterable<RuleOperation> value)
Sets the RuleOperation collection.
-
-