@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:05.090Z") @Stability(value=Experimental) public class ClientAttributes extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
UserPool pool = new UserPool(this, "Pool");
Object clientWriteAttributes = (new ClientAttributes()).withStandardAttributes(Map.of("fullname", true, "email", true)).withCustomAttributes("favouritePizza", "favouriteBeverage");
Object clientReadAttributes = clientWriteAttributes.withStandardAttributes(Map.of("emailVerified", true)).withCustomAttributes("pointsEarned");
pool.addClient("app-client", UserPoolClientOptions.builder()
// ...
.readAttributes(clientReadAttributes)
.writeAttributes(clientWriteAttributes)
.build());
| Modifier | Constructor and Description |
|---|---|
|
ClientAttributes()
(experimental) Creates a ClientAttributes with the specified attributes.
|
protected |
ClientAttributes(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ClientAttributes(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
attributes()
(experimental) The list of attributes represented by this ClientAttributes.
|
ClientAttributes |
withCustomAttributes(String... attributes)
(experimental) Creates a custom ClientAttributes with the specified attributes.
|
ClientAttributes |
withStandardAttributes(StandardAttributesMask attributes)
(experimental) Creates a custom ClientAttributes with the specified attributes.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ClientAttributes(software.amazon.jsii.JsiiObjectRef objRef)
protected ClientAttributes(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public ClientAttributes()
Default: - a ClientAttributes object without any attributes
@Stability(value=Experimental) @NotNull public List<String> attributes()
@Stability(value=Experimental) @NotNull public ClientAttributes withCustomAttributes(@NotNull String... attributes)
attributes - a list of custom attributes to add to the set. This parameter is required.@Stability(value=Experimental) @NotNull public ClientAttributes withStandardAttributes(@NotNull StandardAttributesMask attributes)
attributes - a list of standard attributes to add to the set. This parameter is required.Copyright © 2022. All rights reserved.