com.baidubce.services.bvw.model.notification
Class NotificationCreateRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bvw.model.notification.NotificationBaseRequest
          extended by com.baidubce.services.bvw.model.notification.NotificationCreateRequest

public class NotificationCreateRequest
extends NotificationBaseRequest

Create notification request.


Constructor Summary
NotificationCreateRequest()
           
 
Method Summary
 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)
           
 
Methods inherited from class com.baidubce.services.bvw.model.notification.NotificationBaseRequest
getName, of, setName
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationCreateRequest

public NotificationCreateRequest()
Method Detail

of

public static NotificationCreateRequest of(String name,
                                           String endpoint)
Construct a creating notification request with specified parameters.

Parameters:
name - The notification name
endpoint - The notification endpoint
Returns:
A creating notification request

of

public static NotificationCreateRequest of(String name,
                                           String endpoint,
                                           String token,
                                           AuthType authType)

withRequestCredentials

public NotificationCreateRequest withRequestCredentials(BceCredentials credentials)
Overrides:
withRequestCredentials in class NotificationBaseRequest

getEndpoint

public String getEndpoint()

setEndpoint

public void setEndpoint(String endpoint)

getToken

public String getToken()

setToken

public void setToken(String token)

getAuthType

public AuthType getAuthType()

setAuthType

public void setAuthType(AuthType authType)


Copyright © 2020. All rights reserved.