### YamlMime:JavaType
uid: "com.azure.storage.file.share.models.ShareAccessPolicy"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy"
name: "ShareAccessPolicy"
nameWithType: "ShareAccessPolicy"
summary: "An Access policy."
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **ShareAccessPolicy** implements <>"
constructors:
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.ShareAccessPolicy()"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.ShareAccessPolicy()"
name: "ShareAccessPolicy()"
nameWithType: "ShareAccessPolicy.ShareAccessPolicy()"
summary: "Creates an instance of ShareAccessPolicy class."
syntax: "public ShareAccessPolicy()"
desc: "Creates an instance of ShareAccessPolicy class."
methods:
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.fromXml(com.azure.xml.XmlReader)"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.fromXml(XmlReader xmlReader)"
name: "fromXml(XmlReader xmlReader)"
nameWithType: "ShareAccessPolicy.fromXml(XmlReader xmlReader)"
summary: "Reads an instance of ShareAccessPolicy from the XmlReader."
modifiers:
- "static"
parameters:
- description: "The XmlReader being read."
name: "xmlReader"
type: ""
syntax: "public static ShareAccessPolicy fromXml(XmlReader xmlReader)"
exceptions:
- description: "If an error occurs while reading the ShareAccessPolicy."
type: "XMLStreamException"
desc: "Reads an instance of ShareAccessPolicy from the XmlReader."
returns:
description: "An instance of ShareAccessPolicy if the XmlReader was pointing to an instance of it, or null if it was\n pointing to XML null."
type: ""
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.fromXml(com.azure.xml.XmlReader,java.lang.String)"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.fromXml(XmlReader xmlReader, String rootElementName)"
name: "fromXml(XmlReader xmlReader, String rootElementName)"
nameWithType: "ShareAccessPolicy.fromXml(XmlReader xmlReader, String rootElementName)"
summary: "Reads an instance of ShareAccessPolicy from the XmlReader."
modifiers:
- "static"
parameters:
- description: "The XmlReader being read."
name: "xmlReader"
type: ""
- description: "Optional root element name to override the default defined by the model. Used to support\n cases where the model can deserialize from different root element names."
name: "rootElementName"
type: "String"
syntax: "public static ShareAccessPolicy fromXml(XmlReader xmlReader, String rootElementName)"
exceptions:
- description: "If an error occurs while reading the ShareAccessPolicy."
type: "XMLStreamException"
desc: "Reads an instance of ShareAccessPolicy from the XmlReader."
returns:
description: "An instance of ShareAccessPolicy if the XmlReader was pointing to an instance of it, or null if it was\n pointing to XML null."
type: ""
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.getExpiresOn()"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.getExpiresOn()"
name: "getExpiresOn()"
nameWithType: "ShareAccessPolicy.getExpiresOn()"
summary: "Get the expiresOn property: The date-time the policy expires."
syntax: "public OffsetDateTime getExpiresOn()"
desc: "Get the expiresOn property: The date-time the policy expires."
returns:
description: "the expiresOn value."
type: "OffsetDateTime"
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.getPermissions()"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.getPermissions()"
name: "getPermissions()"
nameWithType: "ShareAccessPolicy.getPermissions()"
summary: "Get the permissions property: The permissions for the ACL policy."
syntax: "public String getPermissions()"
desc: "Get the permissions property: The permissions for the ACL policy."
returns:
description: "the permissions value."
type: "String"
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.getStartsOn()"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.getStartsOn()"
name: "getStartsOn()"
nameWithType: "ShareAccessPolicy.getStartsOn()"
summary: "Get the startsOn property: The date-time the policy is active."
syntax: "public OffsetDateTime getStartsOn()"
desc: "Get the startsOn property: The date-time the policy is active."
returns:
description: "the startsOn value."
type: "OffsetDateTime"
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.setExpiresOn(java.time.OffsetDateTime)"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.setExpiresOn(OffsetDateTime expiresOn)"
name: "setExpiresOn(OffsetDateTime expiresOn)"
nameWithType: "ShareAccessPolicy.setExpiresOn(OffsetDateTime expiresOn)"
summary: "Set the expiresOn property: The date-time the policy expires."
parameters:
- description: "the expiresOn value to set."
name: "expiresOn"
type: "OffsetDateTime"
syntax: "public ShareAccessPolicy setExpiresOn(OffsetDateTime expiresOn)"
desc: "Set the expiresOn property: The date-time the policy expires."
returns:
description: "the ShareAccessPolicy object itself."
type: ""
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.setPermissions(java.lang.String)"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.setPermissions(String permissions)"
name: "setPermissions(String permissions)"
nameWithType: "ShareAccessPolicy.setPermissions(String permissions)"
summary: "Set the permissions property: The permissions for the ACL policy."
parameters:
- description: "the permissions value to set."
name: "permissions"
type: "String"
syntax: "public ShareAccessPolicy setPermissions(String permissions)"
desc: "Set the permissions property: The permissions for the ACL policy."
returns:
description: "the ShareAccessPolicy object itself."
type: ""
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.setStartsOn(java.time.OffsetDateTime)"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.setStartsOn(OffsetDateTime startsOn)"
name: "setStartsOn(OffsetDateTime startsOn)"
nameWithType: "ShareAccessPolicy.setStartsOn(OffsetDateTime startsOn)"
summary: "Set the startsOn property: The date-time the policy is active."
parameters:
- description: "the startsOn value to set."
name: "startsOn"
type: "OffsetDateTime"
syntax: "public ShareAccessPolicy setStartsOn(OffsetDateTime startsOn)"
desc: "Set the startsOn property: The date-time the policy is active."
returns:
description: "the ShareAccessPolicy object itself."
type: ""
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.toXml(com.azure.xml.XmlWriter)"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.toXml(XmlWriter xmlWriter)"
name: "toXml(XmlWriter xmlWriter)"
nameWithType: "ShareAccessPolicy.toXml(XmlWriter xmlWriter)"
parameters:
- name: "xmlWriter"
type: ""
syntax: "public XmlWriter toXml(XmlWriter xmlWriter)"
exceptions:
- type: "XMLStreamException"
returns:
type: ""
- uid: "com.azure.storage.file.share.models.ShareAccessPolicy.toXml(com.azure.xml.XmlWriter,java.lang.String)"
fullName: "com.azure.storage.file.share.models.ShareAccessPolicy.toXml(XmlWriter xmlWriter, String rootElementName)"
name: "toXml(XmlWriter xmlWriter, String rootElementName)"
nameWithType: "ShareAccessPolicy.toXml(XmlWriter xmlWriter, String rootElementName)"
parameters:
- name: "xmlWriter"
type: ""
- name: "rootElementName"
type: "String"
syntax: "public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)"
exceptions:
- type: "XMLStreamException"
returns:
type: ""
type: "class"
desc: "An Access policy."
implements:
- "<>"
metadata: {}
package: "com.azure.storage.file.share.models"
artifact: com.azure:azure-storage-file-share:12.24.0