Package com.microsoft.graph.models
Class NamedLocation
java.lang.Object
com.microsoft.graph.models.PolicyDeletableItem
com.microsoft.graph.models.NamedLocation
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
CountryNamedLocation,IpNamedLocation
@Generated("com.microsoft.kiota")
public class NamedLocation
extends PolicyDeletableItem
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.PolicyDeletableItem
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NamedLocationcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the createdDateTime property value.Gets the displayName property value.The deserialization information for the current modelgetId()Gets the id property value.Gets the modifiedDateTime property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidsetDisplayName(String value) Sets the displayName property value.voidSets the id property value.voidSets the modifiedDateTime property value.Methods inherited from class com.microsoft.graph.models.PolicyDeletableItem
getAdditionalData, getBackingStore, getDeletedDateTime, getOdataType, setAdditionalData, setBackingStore, setDeletedDateTime, setOdataType
-
Constructor Details
-
NamedLocation
public NamedLocation()Instantiates a newNamedLocationand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static NamedLocation createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
NamedLocation
-
getCreatedDateTime
Gets the createdDateTime property value. The Timestamp type represents creation date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.- Returns:
- a
OffsetDateTime
-
getDisplayName
Gets the displayName property value. Human-readable name of the location.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classPolicyDeletableItem- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getId
Gets the id property value. Identifier of a namedLocation object. Read-only.- Returns:
- a
String
-
getModifiedDateTime
Gets the modifiedDateTime property value. The Timestamp type represents last modified date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.- Returns:
- a
OffsetDateTime
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classPolicyDeletableItem- Parameters:
writer- Serialization writer to use to serialize this model
-
setCreatedDateTime
Sets the createdDateTime property value. The Timestamp type represents creation date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.- Parameters:
value- Value to set for the createdDateTime property.
-
setDisplayName
Sets the displayName property value. Human-readable name of the location.- Parameters:
value- Value to set for the displayName property.
-
setId
Sets the id property value. Identifier of a namedLocation object. Read-only.- Parameters:
value- Value to set for the id property.
-
setModifiedDateTime
Sets the modifiedDateTime property value. The Timestamp type represents last modified date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.- Parameters:
value- Value to set for the modifiedDateTime property.
-