Package io.getstream.cloud
Class CloudUser
- java.lang.Object
-
- io.getstream.cloud.CloudUser
-
public final class CloudUser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CloudUser(CloudClient client, java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java8.util.concurrent.CompletableFuture<Data>
create()
java8.util.concurrent.CompletableFuture<Data>
create(Data data)
java8.util.concurrent.CompletableFuture<java.lang.Void>
delete()
java8.util.concurrent.CompletableFuture<Data>
get()
java.lang.String
getID()
java8.util.concurrent.CompletableFuture<Data>
getOrCreate()
java8.util.concurrent.CompletableFuture<Data>
getOrCreate(Data data)
java8.util.concurrent.CompletableFuture<ProfileData>
profile()
java8.util.concurrent.CompletableFuture<Data>
update(Data data)
-
-
-
Constructor Detail
-
CloudUser
public CloudUser(CloudClient client, java.lang.String id)
-
-
Method Detail
-
getID
public java.lang.String getID()
-
get
public java8.util.concurrent.CompletableFuture<Data> get() throws StreamException
- Throws:
StreamException
-
delete
public java8.util.concurrent.CompletableFuture<java.lang.Void> delete() throws StreamException
- Throws:
StreamException
-
getOrCreate
public java8.util.concurrent.CompletableFuture<Data> getOrCreate() throws StreamException
- Throws:
StreamException
-
getOrCreate
public java8.util.concurrent.CompletableFuture<Data> getOrCreate(Data data) throws StreamException
- Throws:
StreamException
-
create
public java8.util.concurrent.CompletableFuture<Data> create(Data data) throws StreamException
- Throws:
StreamException
-
create
public java8.util.concurrent.CompletableFuture<Data> create() throws StreamException
- Throws:
StreamException
-
update
public java8.util.concurrent.CompletableFuture<Data> update(Data data) throws StreamException
- Throws:
StreamException
-
profile
public java8.util.concurrent.CompletableFuture<ProfileData> profile() throws StreamException
- Throws:
StreamException
-
-