public class NotificationCreateRequest extends NotificationBaseRequest
| Constructor and Description |
|---|
NotificationCreateRequest() |
| Modifier and Type | Method and Description |
|---|---|
AuthType |
getAuthType() |
String |
getEndpoint() |
String |
getToken() |
static NotificationCreateRequest |
of(String name,
String endpoint)
Construct a creating notification request with specified parameters.
|
static NotificationCreateRequest |
of(String name,
String endpoint,
String token,
AuthType authType) |
void |
setAuthType(AuthType authType) |
void |
setEndpoint(String endpoint) |
void |
setToken(String token) |
NotificationCreateRequest |
withRequestCredentials(BceCredentials credentials) |
getName, of, setNamegetRequestCredentials, setRequestCredentialspublic static NotificationCreateRequest of(String name, String endpoint)
name - The notification nameendpoint - The notification endpointpublic static NotificationCreateRequest of(String name, String endpoint, String token, AuthType authType)
public NotificationCreateRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class NotificationBaseRequestpublic String getEndpoint()
public void setEndpoint(String endpoint)
public String getToken()
public void setToken(String token)
public AuthType getAuthType()
public void setAuthType(AuthType authType)
Copyright © 2024. All rights reserved.