Class TaxRegistrationEntry

java.lang.Object
software.amazon.awssdk.services.taxsettings.model.TaxRegistrationEntry
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<TaxRegistrationEntry.Builder,TaxRegistrationEntry>

@Generated("software.amazon.awssdk:codegen") public final class TaxRegistrationEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TaxRegistrationEntry.Builder,TaxRegistrationEntry>

The TRN information you provide when you add a new TRN, or update.

See Also:
  • Method Details

    • additionalTaxInformation

      public final AdditionalInfoRequest additionalTaxInformation()

      Additional tax information associated with your TRN. You only need to specify this parameter if Amazon Web Services collects any additional information for your country within AdditionalInfoRequest.

      Returns:
      Additional tax information associated with your TRN. You only need to specify this parameter if Amazon Web Services collects any additional information for your country within AdditionalInfoRequest.
    • certifiedEmailId

      public final String certifiedEmailId()

      The email address to receive VAT invoices.

      Returns:
      The email address to receive VAT invoices.
    • legalAddress

      public final Address legalAddress()

      The legal address associated with your TRN.

      If you're setting a TRN in Brazil for the CNPJ tax type, you don't need to specify the legal address.

      For TRNs in other countries and for CPF tax types Brazil, you must specify the legal address.

      Returns:
      The legal address associated with your TRN.

      If you're setting a TRN in Brazil for the CNPJ tax type, you don't need to specify the legal address.

      For TRNs in other countries and for CPF tax types Brazil, you must specify the legal address.

    • legalName

      public final String legalName()

      The legal name associated with your TRN.

      If you're setting a TRN in Brazil, you don't need to specify the legal name. For TRNs in other countries, you must specify the legal name.

      Returns:
      The legal name associated with your TRN.

      If you're setting a TRN in Brazil, you don't need to specify the legal name. For TRNs in other countries, you must specify the legal name.

    • registrationId

      public final String registrationId()

      Your tax registration unique identifier.

      Returns:
      Your tax registration unique identifier.
    • registrationType

      public final TaxRegistrationType registrationType()

      Your tax registration type. This can be either VAT or GST.

      If the service returns an enum value that is not available in the current SDK version, registrationType will return TaxRegistrationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from registrationTypeAsString().

      Returns:
      Your tax registration type. This can be either VAT or GST.
      See Also:
    • registrationTypeAsString

      public final String registrationTypeAsString()

      Your tax registration type. This can be either VAT or GST.

      If the service returns an enum value that is not available in the current SDK version, registrationType will return TaxRegistrationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from registrationTypeAsString().

      Returns:
      Your tax registration type. This can be either VAT or GST.
      See Also:
    • sector

      public final Sector sector()

      The industry that describes your business. For business-to-business (B2B) customers, specify Business. For business-to-consumer (B2C) customers, specify Individual. For business-to-government (B2G), specify Government.Note that certain values may not applicable for the request country. Please refer to country specific information in API document.

      If the service returns an enum value that is not available in the current SDK version, sector will return Sector.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from sectorAsString().

      Returns:
      The industry that describes your business. For business-to-business (B2B) customers, specify Business. For business-to-consumer (B2C) customers, specify Individual. For business-to-government (B2G), specify Government.Note that certain values may not applicable for the request country. Please refer to country specific information in API document.
      See Also:
    • sectorAsString

      public final String sectorAsString()

      The industry that describes your business. For business-to-business (B2B) customers, specify Business. For business-to-consumer (B2C) customers, specify Individual. For business-to-government (B2G), specify Government.Note that certain values may not applicable for the request country. Please refer to country specific information in API document.

      If the service returns an enum value that is not available in the current SDK version, sector will return Sector.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from sectorAsString().

      Returns:
      The industry that describes your business. For business-to-business (B2B) customers, specify Business. For business-to-consumer (B2C) customers, specify Individual. For business-to-government (B2G), specify Government.Note that certain values may not applicable for the request country. Please refer to country specific information in API document.
      See Also:
    • verificationDetails

      public final VerificationDetails verificationDetails()

      Additional details needed to verify your TRN information in Brazil. You only need to specify this parameter when you set a TRN in Brazil that is the CPF tax type.

      Don't specify this parameter to set a TRN in Brazil of the CNPJ tax type or to set a TRN for another country.

      Returns:
      Additional details needed to verify your TRN information in Brazil. You only need to specify this parameter when you set a TRN in Brazil that is the CPF tax type.

      Don't specify this parameter to set a TRN in Brazil of the CNPJ tax type or to set a TRN for another country.

    • toBuilder

      public TaxRegistrationEntry.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<TaxRegistrationEntry.Builder,TaxRegistrationEntry>
      Returns:
      a builder for type T
    • builder

      public static TaxRegistrationEntry.Builder builder()
    • serializableBuilderClass

      public static Class<? extends TaxRegistrationEntry.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.