com.amazonaws.services.workspaces.model.OperationNotSupportedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-workspaces Show documentation
Show all versions of aws-java-sdk-workspaces Show documentation
The AWS Java SDK for Amazon WorkSpaces module holds the client classes that are used for communicating with Amazon WorkSpaces 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.workspaces.model;
import javax.annotation.Generated;
/**
*
* This operation is not supported.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class OperationNotSupportedException extends com.amazonaws.services.workspaces.model.AmazonWorkspacesException {
private static final long serialVersionUID = 1L;
/**
*
* The exception error reason.
*
*/
private String reason;
/**
* Constructs a new OperationNotSupportedException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public OperationNotSupportedException(String message) {
super(message);
}
/**
*
* The exception error reason.
*
*
* @param reason
* The exception error reason.
*/
@com.fasterxml.jackson.annotation.JsonProperty("reason")
public void setReason(String reason) {
this.reason = reason;
}
/**
*
* The exception error reason.
*
*
* @return The exception error reason.
*/
@com.fasterxml.jackson.annotation.JsonProperty("reason")
public String getReason() {
return this.reason;
}
/**
*
* The exception error reason.
*
*
* @param reason
* The exception error reason.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OperationNotSupportedException withReason(String reason) {
setReason(reason);
return this;
}
}