Klasse CreateUserOperationSpec

java.lang.Object
io.github.primelib.pagerduty4j.rest.spec.CreateUserOperationSpec

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class CreateUserOperationSpec extends Object
CreateUserSpec

Specification for the CreateUser operation.

Create a user

  • Felddetails

    • VALIDATION_ENABLED

      @Experimental public static Boolean VALIDATION_ENABLED
      allows to disable validation of the spec, use with care!
  • Konstruktordetails

    • CreateUserOperationSpec

      @Internal public CreateUserOperationSpec(Consumer<CreateUserOperationSpec> spec)
      Constructs a validated instance of CreateUserOperationSpec.
      Parameter:
      spec - the specification to process
    • CreateUserOperationSpec

      @Internal public CreateUserOperationSpec(String from, CreateUserRequest createUserRequest)
      Constructs a validated instance of CreateUserOperationSpec.

      NOTE: This constructor is not considered stable and may change if the operation is updated.

      Parameter:
      from - The email address of a valid user associated with the account making the request.
      createUserRequest - The user to be created.
    • CreateUserOperationSpec

      protected CreateUserOperationSpec()
  • Methodendetails

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Löst aus:
      NullPointerException
    • builder

    • from

      @NotNull public @NotNull String from()
      The email address of a valid user associated with the account making the request.
    • createUserRequest

      @Nullable public @Nullable CreateUserRequest createUserRequest()
      The user to be created.
    • from

      public CreateUserOperationSpec from(@NotNull @NotNull String from)
      The email address of a valid user associated with the account making the request.
      Gibt zurück:
      this.
    • createUserRequest

      public CreateUserOperationSpec createUserRequest(@Nullable @Nullable CreateUserRequest createUserRequest)
      The user to be created.
      Gibt zurück:
      this.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object