com.baidubce.services.lss.model
Class AuthInfo

java.lang.Object
  extended by com.baidubce.services.lss.model.AuthInfo
All Implemented Interfaces:
Serializable

public class AuthInfo
extends Object
implements Serializable

Represents the authentication settings.

See Also:
Serialized Form

Constructor Summary
AuthInfo()
           
 
Method Summary
 String getKey()
          Returns the authentication key.
 Boolean getPlay()
          Returns true if authentication is required before play
 Boolean getPush()
          Returns true if authentication is required before push.
 void setKey(String key)
          Sets the authentication key.
 void setPlay(Boolean play)
          Sets to true if authentication is required before play
 void setPush(Boolean push)
          Sets to true if authentication is required before push
 String toString()
           
 AuthInfo withKey(String key)
          Sets the authentication key.
 AuthInfo withPlay(Boolean play)
          Sets to true if authentication is required before play
 AuthInfo withPush(Boolean push)
          Sets to true if authentication is required before push
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthInfo

public AuthInfo()
Method Detail

getPush

public Boolean getPush()
Returns true if authentication is required before push.

Returns:
true if authentication is required before push

setPush

public void setPush(Boolean push)
Sets to true if authentication is required before push

Parameters:
push - true if authentication is required before push

withPush

public AuthInfo withPush(Boolean push)
Sets to true if authentication is required before push

Parameters:
push - true if authentication is required before push
Returns:
this object

getPlay

public Boolean getPlay()
Returns true if authentication is required before play

Returns:
true if authentication is required before play

setPlay

public void setPlay(Boolean play)
Sets to true if authentication is required before play

Parameters:
play - true if authentication is required before play

withPlay

public AuthInfo withPlay(Boolean play)
Sets to true if authentication is required before play

Parameters:
play - true if authentication is required before play
Returns:
this object

getKey

public String getKey()
Returns the authentication key.

Returns:
the authentication key

setKey

public void setKey(String key)
Sets the authentication key.

Parameters:
key - the authentication key

withKey

public AuthInfo withKey(String key)
Sets the authentication key.

Parameters:
key - the authentication key
Returns:
this object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.