Class MXData

java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<String,Object>
org.jclouds.dynect.v3.domain.rdata.MXData
All Implemented Interfaces:
Map<String,Object>

public class MXData extends com.google.common.collect.ForwardingMap<String,Object>
Corresponds to the binary representation of the MX (Mail Exchange) RData

Example

 import static org.jclouds.dynect.v3.domain.rdata.MXData.mx;
 ...
 MXData rdata = mx(1, "mail.jclouds.org");
 
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap

    com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues

    Nested classes/interfaces inherited from interface java.util.Map

    Map.Entry<K,V>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected Map<String,Object>
     
    domain-name which specifies a host willing to act as a mail exchange for the owner name.
    int
    specifies the preference given to this RR among others at the same owner.
    static MXData
    mx(int preference, String exchange)
     
     

    Methods inherited from class com.google.common.collect.ForwardingMap

    clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values

    Methods inherited from class com.google.common.collect.ForwardingObject

    toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getPreference

      public int getPreference()
      specifies the preference given to this RR among others at the same owner. Lower values are preferred.
    • getExchange

      public String getExchange()
      domain-name which specifies a host willing to act as a mail exchange for the owner name.
    • delegate

      protected Map<String,Object> delegate()
      Specified by:
      delegate in class com.google.common.collect.ForwardingMap<String,Object>
    • mx

      public static MXData mx(int preference, String exchange)
    • builder

      public static MXData.Builder builder()
    • toBuilder

      public MXData.Builder toBuilder()