Class Destination

java.lang.Object
dev.vality.fistful.destination.Destination
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Destination>, org.apache.thrift.TBase<Destination,​Destination._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-06-27")
public class Destination
extends Object
implements org.apache.thrift.TBase<Destination,​Destination._Fields>, Serializable, Cloneable, Comparable<Destination>
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • Destination

      public Destination()
    • Destination

      public Destination​(String name, Resource resource)
    • Destination

      public Destination​(Destination other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public Destination deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<Destination,​Destination._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<Destination,​Destination._Fields>
    • getName

      public String getName()
    • setName

      public Destination setName​(String name)
    • unsetName

      public void unsetName()
    • isSetName

      public boolean isSetName()
      Returns true if field name is set (has been assigned a value) and false otherwise
    • setNameIsSet

      public void setNameIsSet​(boolean value)
    • getResource

      public Resource getResource()
    • setResource

      public Destination setResource​(Resource resource)
    • unsetResource

      public void unsetResource()
    • isSetResource

      public boolean isSetResource()
      Returns true if field resource is set (has been assigned a value) and false otherwise
    • setResourceIsSet

      public void setResourceIsSet​(boolean value)
    • getExternalId

      public String getExternalId()
    • setExternalId

      public Destination setExternalId​(String external_id)
    • unsetExternalId

      public void unsetExternalId()
    • isSetExternalId

      public boolean isSetExternalId()
      Returns true if field external_id is set (has been assigned a value) and false otherwise
    • setExternalIdIsSet

      public void setExternalIdIsSet​(boolean value)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public Destination setCreatedAt​(String created_at)
    • unsetCreatedAt

      public void unsetCreatedAt()
    • isSetCreatedAt

      public boolean isSetCreatedAt()
      Returns true if field created_at is set (has been assigned a value) and false otherwise
    • setCreatedAtIsSet

      public void setCreatedAtIsSet​(boolean value)
    • getMetadataSize

      public int getMetadataSize()
    • putToMetadata

      public void putToMetadata​(String key, Value val)
    • getMetadata

      public Map<String,​Value> getMetadata()
    • setMetadata

      public Destination setMetadata​(Map<String,​Value> metadata)
    • unsetMetadata

      public void unsetMetadata()
    • isSetMetadata

      public boolean isSetMetadata()
      Returns true if field metadata is set (has been assigned a value) and false otherwise
    • setMetadataIsSet

      public void setMetadataIsSet​(boolean value)
    • setFieldValue

      public void setFieldValue​(Destination._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<Destination,​Destination._Fields>
    • getFieldValue

      public Object getFieldValue​(Destination._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<Destination,​Destination._Fields>
    • isSet

      public boolean isSet​(Destination._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<Destination,​Destination._Fields>
    • equals

      public boolean equals​(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(Destination that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo​(Destination other)
      Specified by:
      compareTo in interface Comparable<Destination>
    • fieldForId

      public Destination._Fields fieldForId​(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<Destination,​Destination._Fields>
    • getFields

      public Destination._Fields[] getFields()
      Specified by:
      getFields in interface org.apache.thrift.TBase<Destination,​Destination._Fields>
    • getFieldMetaData

      public Map<Destination._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<Destination,​Destination._Fields>
    • read

      public void read​(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException