com.baidubce.services.cfc.model
Class CreateAliasRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.cfc.model.GenericAliasRequest
          extended by com.baidubce.services.cfc.model.CreateAliasRequest

public class CreateAliasRequest
extends GenericAliasRequest

Request object for creating a alias for Baidu CFC function.


Constructor Summary
CreateAliasRequest(String name)
           
 
Method Summary
 String getDescription()
          Get the description of the alias
 String getFunctionName()
          Get the function name
 String getFunctionVersion()
          Get the function version
 void setDescription(String description)
          Set the description of alias
 void setFunctionName(String functionName)
          Set the function name.
 void setFunctionVersion(String functionVersion)
          Set the function version
 String toString()
          (non-Javadoc)
 CreateAliasRequest withDescription(String description)
           
 CreateAliasRequest withFunctionName(String functionName)
           
 CreateAliasRequest withFunctionVersion(String functionVersion)
           
 CreateAliasRequest withName(String name)
           
 CreateAliasRequest withRequestCredentials(BceCredentials credentials)
           
 
Methods inherited from class com.baidubce.services.cfc.model.GenericAliasRequest
getName, 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, wait, wait, wait
 

Constructor Detail

CreateAliasRequest

public CreateAliasRequest(String name)
Method Detail

getFunctionName

public String getFunctionName()
Get the function name

Returns:
The function name

setFunctionName

public void setFunctionName(String functionName)
Set the function name. Note that the length limit only applies to BRN. If only the function name is specified, the length is limited to 64 characters.

Parameters:
functionName -

getFunctionVersion

public String getFunctionVersion()
Get the function version

Returns:
The function version

setFunctionVersion

public void setFunctionVersion(String functionVersion)
Set the function version

Parameters:
functionVersion - The function version

getDescription

public String getDescription()
Get the description of the alias

Returns:
The description of alias

setDescription

public void setDescription(String description)
Set the description of alias

Parameters:
description - The description of alias

withName

public CreateAliasRequest withName(String name)
Specified by:
withName in class GenericAliasRequest

withFunctionName

public CreateAliasRequest withFunctionName(String functionName)

withFunctionVersion

public CreateAliasRequest withFunctionVersion(String functionVersion)

withDescription

public CreateAliasRequest withDescription(String description)

withRequestCredentials

public CreateAliasRequest withRequestCredentials(BceCredentials credentials)
Specified by:
withRequestCredentials in class AbstractBceRequest

toString

public String toString()
(non-Javadoc)

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2020. All rights reserved.