Class DomainDnsSrvRecord

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class DomainDnsSrvRecord extends DomainDnsRecord implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • DomainDnsSrvRecord

      public DomainDnsSrvRecord()
      Instantiates a new DomainDnsSrvRecord and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static DomainDnsSrvRecord 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 DomainDnsSrvRecord
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class DomainDnsRecord
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getNameTarget

      @Nullable public String getNameTarget()
      Gets the nameTarget property value. Value to use when configuring the Target property of the SRV record at the DNS host.
      Returns:
      a String
    • getPort

      @Nullable public Integer getPort()
      Gets the port property value. Value to use when configuring the port property of the SRV record at the DNS host.
      Returns:
      a Integer
    • getPriority

      @Nullable public Integer getPriority()
      Gets the priority property value. Value to use when configuring the priority property of the SRV record at the DNS host.
      Returns:
      a Integer
    • getProtocol

      @Nullable public String getProtocol()
      Gets the protocol property value. Value to use when configuring the protocol property of the SRV record at the DNS host.
      Returns:
      a String
    • getService

      @Nullable public String getService()
      Gets the service property value. Value to use when configuring the service property of the SRV record at the DNS host.
      Returns:
      a String
    • getWeight

      @Nullable public Integer getWeight()
      Gets the weight property value. Value to use when configuring the weight property of the SRV record at the DNS host.
      Returns:
      a Integer
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class DomainDnsRecord
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setNameTarget

      public void setNameTarget(@Nullable String value)
      Sets the nameTarget property value. Value to use when configuring the Target property of the SRV record at the DNS host.
      Parameters:
      value - Value to set for the nameTarget property.
    • setPort

      public void setPort(@Nullable Integer value)
      Sets the port property value. Value to use when configuring the port property of the SRV record at the DNS host.
      Parameters:
      value - Value to set for the port property.
    • setPriority

      public void setPriority(@Nullable Integer value)
      Sets the priority property value. Value to use when configuring the priority property of the SRV record at the DNS host.
      Parameters:
      value - Value to set for the priority property.
    • setProtocol

      public void setProtocol(@Nullable String value)
      Sets the protocol property value. Value to use when configuring the protocol property of the SRV record at the DNS host.
      Parameters:
      value - Value to set for the protocol property.
    • setService

      public void setService(@Nullable String value)
      Sets the service property value. Value to use when configuring the service property of the SRV record at the DNS host.
      Parameters:
      value - Value to set for the service property.
    • setWeight

      public void setWeight(@Nullable Integer value)
      Sets the weight property value. Value to use when configuring the weight property of the SRV record at the DNS host.
      Parameters:
      value - Value to set for the weight property.