Class DeleteRuleOperation
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.RuleOperation
-
- microsoft.exchange.webservices.data.property.complex.DeleteRuleOperation
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class DeleteRuleOperation extends RuleOperation
Represents an operation to delete an existing rule.
-
-
Field Summary
-
Fields inherited from class microsoft.exchange.webservices.data.property.complex.RuleOperation
xmlElementName
-
-
Constructor Summary
Constructors Constructor Description DeleteRuleOperation()Initializes a new instance of theDeleteRuleOperationclass.DeleteRuleOperation(String ruleId)Initializes a new instance of theDeleteRuleOperationclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRuleId()Gets or sets the Id of the rule to delete.StringgetXmlElementName()Gets the Xml element name of the DeleteRuleOperation object.protected voidinternalValidate()Validates this instance.voidsetRuleId(String value)voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
DeleteRuleOperation
public DeleteRuleOperation()
Initializes a new instance of theDeleteRuleOperationclass.
-
DeleteRuleOperation
public DeleteRuleOperation(String ruleId)
Initializes a new instance of theDeleteRuleOperationclass.- Parameters:
ruleId- The Id of the inbox rule to delete.
-
-
Method Detail
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException
-
internalValidate
protected void internalValidate() throws Exception
Validates this instance.- Overrides:
internalValidatein classComplexProperty- Throws:
Exception- the exception
-
getXmlElementName
public String getXmlElementName()
Gets the Xml element name of the DeleteRuleOperation object.- Overrides:
getXmlElementNamein classRuleOperation
-
-