com.amazonaws.services.securitylake.model.ConflictException Maven / Gradle / Ivy
/*
* 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.securitylake.model;
import javax.annotation.Generated;
/**
*
* Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write
* did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is
* the recommended response to this exception.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ConflictException extends com.amazonaws.services.securitylake.model.AmazonSecurityLakeException {
private static final long serialVersionUID = 1L;
/**
*
* The resource name.
*
*/
private String resourceName;
/**
*
* The resource type.
*
*/
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 resource name.
*
*
* @param resourceName
* The resource name.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceName")
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
/**
*
* The resource name.
*
*
* @return The resource name.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceName")
public String getResourceName() {
return this.resourceName;
}
/**
*
* The resource name.
*
*
* @param resourceName
* The resource name.
* @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 resource type.
*
*
* @param resourceType
* The resource type.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceType")
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* The resource type.
*
*
* @return The resource type.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceType")
public String getResourceType() {
return this.resourceType;
}
/**
*
* The resource type.
*
*
* @param resourceType
* The resource type.
* @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