com.amazonaws.services.cloudwatchrum.model.ConflictException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-cloudwatchrum Show documentation
Show all versions of aws-java-sdk-cloudwatchrum Show documentation
The AWS Java SDK for CloudWatch RUM module holds the client classes that are used for communicating with CloudWatch RUM Service
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.cloudwatchrum.model;
import javax.annotation.Generated;
/**
*
* This operation attempted to create a resource that already exists.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ConflictException extends com.amazonaws.services.cloudwatchrum.model.AWSCloudWatchRUMException {
private static final long serialVersionUID = 1L;
/**
*
* The name of the resource that is associated with the error.
*
*/
private String resourceName;
/**
*
* The type of the resource that is associated with the error.
*
*/
private String resourceType;
/**
* Constructs a new ConflictException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ConflictException(String message) {
super(message);
}
/**
*
* The name of the resource that is associated with the error.
*
*
* @param resourceName
* The name of the resource that is associated with the error.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceName")
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
/**
*
* The name of the resource that is associated with the error.
*
*
* @return The name of the resource that is associated with the error.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceName")
public String getResourceName() {
return this.resourceName;
}
/**
*
* The name of the resource that is associated with the error.
*
*
* @param resourceName
* The name of the resource that is associated with the error.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConflictException withResourceName(String resourceName) {
setResourceName(resourceName);
return this;
}
/**
*
* The type of the resource that is associated with the error.
*
*
* @param resourceType
* The type of the resource that is associated with the error.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceType")
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* The type of the resource that is associated with the error.
*
*
* @return The type of the resource that is associated with the error.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceType")
public String getResourceType() {
return this.resourceType;
}
/**
*
* The type of the resource that is associated with the error.
*
*
* @param resourceType
* The type of the resource that is associated with the error.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConflictException withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy