类 CreateInstanceRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.moladb.model.CreateInstanceRequest
-
public class CreateInstanceRequest extends AbstractBceRequest
Represents the input of a CreateInstance operation.
-
-
构造器概要
构造器 构造器 说明 CreateInstanceRequest()Constructs a new CreateInstanceRequest object.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetDescription()Get the description information for the instance when creating an instance.StringgetInstanceName()Get the name of instance when creating an instance.voidsetDescription(String description)Set the description information for the instance when creating an instance.voidsetInstanceName(String name)Set the name of instance when creating an instance.StringtoString()Return a string representation of request information.CreateInstanceRequestwithDescription(String description)Set the description information for the instance when creating an instance.CreateInstanceRequestwithInstanceName(String name)Set the name of instance when creating an instance.CreateInstanceRequestwithRequestCredentials(BceCredentials credentials)-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
setInstanceName
public void setInstanceName(String name)
Set the name of instance when creating an instance.- 参数:
name- The name of instance when creating an instance.
-
withInstanceName
public CreateInstanceRequest withInstanceName(String name)
Set the name of instance when creating an instance.- 参数:
name- The name of instance when creating an instance.- 返回:
- A reference to this object so that method calls can be chained together.
-
getInstanceName
public String getInstanceName()
Get the name of instance when creating an instance.- 返回:
- The name of instance when creating an instance.
-
setDescription
public void setDescription(String description)
Set the description information for the instance when creating an instance.- 参数:
description- The description information for the instance when creating an instance.
-
withDescription
public CreateInstanceRequest withDescription(String description)
Set the description information for the instance when creating an instance.- 参数:
description- The description information for the instance when creating an instance.- 返回:
- A reference to this object so that method calls can be chained together.
-
getDescription
public String getDescription()
Get the description information for the instance when creating an instance.- 返回:
- The description information for the instance when creating an instance.
-
toString
public String toString()
Return a string representation of request information.
-
withRequestCredentials
public CreateInstanceRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
-