com.baidubce.services.cnap.model.repository
Class CreateRepositoryRequest
java.lang.Object
com.baidubce.model.AbstractBceRequest
com.baidubce.services.cnap.model.repository.CreateRepositoryRequest
public class CreateRepositoryRequest
- extends AbstractBceRequest
The request for create repository.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateRepositoryRequest
public CreateRepositoryRequest()
getWorkspaceID
public String getWorkspaceID()
setWorkspaceID
public void setWorkspaceID(String workspaceID)
getName
public String getName()
setName
public void setName(String name)
getType
public int getType()
setType
public void setType(int type)
getIsSecure
public boolean getIsSecure()
setIsSecure
public void setIsSecure(boolean isSecure)
getIsPrivate
public boolean getIsPrivate()
setIsPrivate
public void setIsPrivate(boolean isPrivate)
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getEndpoint
public String getEndpoint()
setEndpoint
public void setEndpoint(String endpoint)
withWorkspaceID
public CreateRepositoryRequest withWorkspaceID(String workspaceID)
withName
public CreateRepositoryRequest withName(String name)
withType
public CreateRepositoryRequest withType(int type)
withSecure
public CreateRepositoryRequest withSecure(boolean isSecure)
withPriviate
public CreateRepositoryRequest withPriviate(boolean priviate)
withUsername
public CreateRepositoryRequest withUsername(String username)
withPassword
public CreateRepositoryRequest withPassword(String password)
withEndpoint
public CreateRepositoryRequest withEndpoint(String endpoint)
withRequestCredentials
public CreateRepositoryRequest withRequestCredentials(BceCredentials credentials)
- Configure request credential for the request.
- Specified by:
withRequestCredentials in class AbstractBceRequest
- Parameters:
credentials - a valid instance of BceCredentials.
- Returns:
- request with credentials.
Copyright © 2020. All rights reserved.