Class CreateApiKeyParams

java.lang.Object
dev.dosya.sdk.model.CreateApiKeyParams

public final class CreateApiKeyParams extends Object
Parameters for creating a new API key.

 CreateApiKeyParams params = new CreateApiKeyParams("CI/CD Key")
     .scope("read")
     .expiresInDays(90);
 
Since:
0.1.0
  • Constructor Details

    • CreateApiKeyParams

      public CreateApiKeyParams(@NotNull @NotNull String name)
  • Method Details

    • scope

      public CreateApiKeyParams scope(String scope)
    • expiresInDays

      public CreateApiKeyParams expiresInDays(int expiresInDays)
    • getName

      @NotNull public @NotNull String getName()
    • getScope

      @Nullable public @Nullable String getScope()
    • getExpiresInDays

      @Nullable public @Nullable Integer getExpiresInDays()