Tabnine Logo
DeviceType
Code IndexAdd Tabnine to your IDE (free)

How to use
DeviceType
in
software.amazon.awssdk.services.cognitoidentityprovider.model

Best Java code snippets using software.amazon.awssdk.services.cognitoidentityprovider.model.DeviceType (Showing top 20 results out of 315)

origin: software.amazon.awssdk/cognitoidp

  @Override
  public DeviceType build() {
    return new DeviceType(this);
  }
}
origin: software.amazon.awssdk/cognitoidp

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(deviceKey());
  hashCode = 31 * hashCode + Objects.hashCode(deviceAttributes());
  hashCode = 31 * hashCode + Objects.hashCode(deviceCreateDate());
  hashCode = 31 * hashCode + Objects.hashCode(deviceLastModifiedDate());
  hashCode = 31 * hashCode + Objects.hashCode(deviceLastAuthenticatedDate());
  return hashCode;
}
origin: aws/aws-sdk-java-v2

public final DeviceType.Builder getDevice() {
  return device != null ? device.toBuilder() : null;
}
origin: aws/aws-sdk-java-v2

@Override
@SafeVarargs
public final Builder devices(Consumer<DeviceType.Builder>... devices) {
  devices(Stream.of(devices).map(c -> DeviceType.builder().applyMutation(c).build()).collect(Collectors.toList()));
  return this;
}
origin: software.amazon.awssdk/cognitoidp

@Override
@SafeVarargs
public final Builder devices(Consumer<DeviceType.Builder>... devices) {
  devices(Stream.of(devices).map(c -> DeviceType.builder().applyMutation(c).build()).collect(Collectors.toList()));
  return this;
}
origin: aws/aws-sdk-java-v2

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(deviceKey());
  hashCode = 31 * hashCode + Objects.hashCode(deviceAttributes());
  hashCode = 31 * hashCode + Objects.hashCode(deviceCreateDate());
  hashCode = 31 * hashCode + Objects.hashCode(deviceLastModifiedDate());
  hashCode = 31 * hashCode + Objects.hashCode(deviceLastAuthenticatedDate());
  return hashCode;
}
origin: aws/aws-sdk-java-v2

@Override
@SafeVarargs
public final Builder devices(Consumer<DeviceType.Builder>... devices) {
  devices(Stream.of(devices).map(c -> DeviceType.builder().applyMutation(c).build()).collect(Collectors.toList()));
  return this;
}
origin: aws/aws-sdk-java-v2

public final DeviceType.Builder getDevice() {
  return device != null ? device.toBuilder() : null;
}
origin: aws/aws-sdk-java-v2

@Override
public DeviceType build() {
  return new DeviceType(this);
}
origin: aws/aws-sdk-java-v2

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof DeviceType)) {
    return false;
  }
  DeviceType other = (DeviceType) obj;
  return Objects.equals(deviceKey(), other.deviceKey()) && Objects.equals(deviceAttributes(), other.deviceAttributes())
      && Objects.equals(deviceCreateDate(), other.deviceCreateDate())
      && Objects.equals(deviceLastModifiedDate(), other.deviceLastModifiedDate())
      && Objects.equals(deviceLastAuthenticatedDate(), other.deviceLastAuthenticatedDate());
}
origin: software.amazon.awssdk/cognitoidp

@Override
@SafeVarargs
public final Builder devices(Consumer<DeviceType.Builder>... devices) {
  devices(Stream.of(devices).map(c -> DeviceType.builder().applyMutation(c).build()).collect(Collectors.toList()));
  return this;
}
origin: software.amazon.awssdk/cognitoidp

public final DeviceType.Builder getDevice() {
  return device != null ? device.toBuilder() : null;
}
origin: aws/aws-sdk-java-v2

/**
 * 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.
 */
@Override
public String toString() {
  return ToString.builder("DeviceType").add("DeviceKey", deviceKey()).add("DeviceAttributes", deviceAttributes())
      .add("DeviceCreateDate", deviceCreateDate()).add("DeviceLastModifiedDate", deviceLastModifiedDate())
      .add("DeviceLastAuthenticatedDate", deviceLastAuthenticatedDate()).build();
}
origin: aws/aws-sdk-java-v2

  /**
   * <p>
   * The device.
   * </p>
   * This is a convenience that creates an instance of the {@link DeviceType.Builder} avoiding the need to create
   * one manually via {@link DeviceType#builder()}.
   *
   * When the {@link Consumer} completes, {@link DeviceType.Builder#build()} is called immediately and its result
   * is passed to {@link #device(DeviceType)}.
   * 
   * @param device
   *        a consumer that will call methods on {@link DeviceType.Builder}
   * @return Returns a reference to this object so that method calls can be chained together.
   * @see #device(DeviceType)
   */
  default Builder device(Consumer<DeviceType.Builder> device) {
    return device(DeviceType.builder().applyMutation(device).build());
  }
}
origin: software.amazon.awssdk/cognitoidp

public final DeviceType.Builder getDevice() {
  return device != null ? device.toBuilder() : null;
}
origin: software.amazon.awssdk/cognitoidp

@Override
public String toString() {
  return ToString.builder("DeviceType").add("DeviceKey", deviceKey()).add("DeviceAttributes", deviceAttributes())
      .add("DeviceCreateDate", deviceCreateDate()).add("DeviceLastModifiedDate", deviceLastModifiedDate())
      .add("DeviceLastAuthenticatedDate", deviceLastAuthenticatedDate()).build();
}
origin: aws/aws-sdk-java-v2

  /**
   * <p>
   * The device.
   * </p>
   * This is a convenience that creates an instance of the {@link DeviceType.Builder} avoiding the need to create
   * one manually via {@link DeviceType#builder()}.
   *
   * When the {@link Consumer} completes, {@link DeviceType.Builder#build()} is called immediately and its result
   * is passed to {@link #device(DeviceType)}.
   * 
   * @param device
   *        a consumer that will call methods on {@link DeviceType.Builder}
   * @return Returns a reference to this object so that method calls can be chained together.
   * @see #device(DeviceType)
   */
  default Builder device(Consumer<DeviceType.Builder> device) {
    return device(DeviceType.builder().applyMutation(device).build());
  }
}
origin: software.amazon.awssdk/cognitoidp

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof DeviceType)) {
    return false;
  }
  DeviceType other = (DeviceType) obj;
  return Objects.equals(deviceKey(), other.deviceKey()) && Objects.equals(deviceAttributes(), other.deviceAttributes())
      && Objects.equals(deviceCreateDate(), other.deviceCreateDate())
      && Objects.equals(deviceLastModifiedDate(), other.deviceLastModifiedDate())
      && Objects.equals(deviceLastAuthenticatedDate(), other.deviceLastAuthenticatedDate());
}
origin: software.amazon.awssdk/cognitoidp

  /**
   * <p>
   * The device.
   * </p>
   * This is a convenience that creates an instance of the {@link DeviceType.Builder} avoiding the need to create
   * one manually via {@link DeviceType#builder()}.
   *
   * When the {@link Consumer} completes, {@link DeviceType.Builder#build()} is called immediately and its result
   * is passed to {@link #device(DeviceType)}.
   * 
   * @param device
   *        a consumer that will call methods on {@link DeviceType.Builder}
   * @return Returns a reference to this object so that method calls can be chained together.
   * @see #device(DeviceType)
   */
  default Builder device(Consumer<DeviceType.Builder> device) {
    return device(DeviceType.builder().applyMutation(device).build());
  }
}
origin: software.amazon.awssdk/cognitoidp

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "DeviceKey":
    return Optional.ofNullable(clazz.cast(deviceKey()));
  case "DeviceAttributes":
    return Optional.ofNullable(clazz.cast(deviceAttributes()));
  case "DeviceCreateDate":
    return Optional.ofNullable(clazz.cast(deviceCreateDate()));
  case "DeviceLastModifiedDate":
    return Optional.ofNullable(clazz.cast(deviceLastModifiedDate()));
  case "DeviceLastAuthenticatedDate":
    return Optional.ofNullable(clazz.cast(deviceLastAuthenticatedDate()));
  default:
    return Optional.empty();
  }
}
software.amazon.awssdk.services.cognitoidentityprovider.modelDeviceType

Javadoc

The device type.

Most used methods

  • <init>
  • builder
  • deviceAttributes
    The device attributes. Attempts to modify the collection returned by this method will result in a
  • deviceCreateDate
    The creation date of the device.
  • deviceKey
    The device key.
  • deviceLastAuthenticatedDate
    The date in which the device was last authenticated.
  • deviceLastModifiedDate
    The last modified date of the device.
  • toBuilder

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now