Package com.azure.storage.blob.models
Class KeyInfo
java.lang.Object
com.azure.storage.blob.models.KeyInfo
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<KeyInfo>
Key information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyInfo
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of KeyInfo from the XmlReader.static KeyInfo
Reads an instance of KeyInfo from the XmlReader.Get the expiry property: The date-time the key expires in ISO 8601 UTC time.getStart()
Get the start property: The date-time the key is active in ISO 8601 UTC time.Set the expiry property: The date-time the key expires in ISO 8601 UTC time.Set the start property: The date-time the key is active in ISO 8601 UTC time.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
KeyInfo
public KeyInfo()Creates an instance of KeyInfo class.
-
-
Method Details
-
getStart
Get the start property: The date-time the key is active in ISO 8601 UTC time.- Returns:
- the start value.
-
setStart
Set the start property: The date-time the key is active in ISO 8601 UTC time.- Parameters:
start
- the start value to set.- Returns:
- the KeyInfo object itself.
-
getExpiry
Get the expiry property: The date-time the key expires in ISO 8601 UTC time.- Returns:
- the expiry value.
-
setExpiry
Set the expiry property: The date-time the key expires in ISO 8601 UTC time.- Parameters:
expiry
- the expiry value to set.- Returns:
- the KeyInfo object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<KeyInfo>
- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<KeyInfo>
- Throws:
XMLStreamException
-
fromXml
Reads an instance of KeyInfo from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of KeyInfo if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
XMLStreamException
- If an error occurs while reading the KeyInfo.
-
fromXml
public static KeyInfo fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of KeyInfo from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.rootElementName
- Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.- Returns:
- An instance of KeyInfo if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
XMLStreamException
- If an error occurs while reading the KeyInfo.
-