@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceAlreadyExistsException extends AWSServiceDiscoveryException
The service can't be created because a service with the same name already exists.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ServiceAlreadyExistsException(String message)
Constructs a new ServiceAlreadyExistsException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getCreatorRequestId()
The
CreatorRequestId that was used to create the service. |
String |
getServiceId()
The ID of the existing service.
|
void |
setCreatorRequestId(String creatorRequestId)
The
CreatorRequestId that was used to create the service. |
void |
setServiceId(String serviceId)
The ID of the existing service.
|
ServiceAlreadyExistsException |
withCreatorRequestId(String creatorRequestId)
The
CreatorRequestId that was used to create the service. |
ServiceAlreadyExistsException |
withServiceId(String serviceId)
The ID of the existing service.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServiceAlreadyExistsException(String message)
message
- Describes the error encountered.public void setCreatorRequestId(String creatorRequestId)
The CreatorRequestId
that was used to create the service.
creatorRequestId
- The CreatorRequestId
that was used to create the service.public String getCreatorRequestId()
The CreatorRequestId
that was used to create the service.
CreatorRequestId
that was used to create the service.public ServiceAlreadyExistsException withCreatorRequestId(String creatorRequestId)
The CreatorRequestId
that was used to create the service.
creatorRequestId
- The CreatorRequestId
that was used to create the service.public void setServiceId(String serviceId)
The ID of the existing service.
serviceId
- The ID of the existing service.public String getServiceId()
The ID of the existing service.
public ServiceAlreadyExistsException withServiceId(String serviceId)
The ID of the existing service.
serviceId
- The ID of the existing service.