
com.amazonaws.services.identitystore.model.ResourceNotFoundException Maven / Gradle / Ivy
/*
* Copyright 2016-2021 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.identitystore.model;
import javax.annotation.Generated;
/**
*
* Indicates that a requested resource is not found.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ResourceNotFoundException extends com.amazonaws.services.identitystore.model.AWSIdentityStoreException {
private static final long serialVersionUID = 1L;
/**
*
* The type of resource in the Identity Store service, which is an enum object. Valid values include USER, GROUP,
* and IDENTITY_STORE.
*
*/
private String resourceType;
/**
*
* The identifier for a resource in the identity store, which can be used as UserId
or
* GroupId
. The format for ResourceId
is either UUID
or
* 1234567890-UUID
, where UUID
is a randomly generated value for each resource when it is
* created and 1234567890
represents the IdentityStoreId
string value. In the case that
* the identity store is migrated from a legacy SSO identity store, the ResourceId
for that identity
* store will be in the format of UUID
. Otherwise, it will be in the 1234567890-UUID
* format.
*
*/
private String resourceId;
/**
*
* The identifier for each request. This value is a globally unique ID that is generated by the Identity Store
* service for each sent request, and is then returned inside the exception if the request fails.
*
*/
private String requestId;
/**
* Constructs a new ResourceNotFoundException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ResourceNotFoundException(String message) {
super(message);
}
/**
*
* The type of resource in the Identity Store service, which is an enum object. Valid values include USER, GROUP,
* and IDENTITY_STORE.
*
*
* @param resourceType
* The type of resource in the Identity Store service, which is an enum object. Valid values include USER,
* GROUP, and IDENTITY_STORE.
* @see ResourceType
*/
@com.fasterxml.jackson.annotation.JsonProperty("ResourceType")
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* The type of resource in the Identity Store service, which is an enum object. Valid values include USER, GROUP,
* and IDENTITY_STORE.
*
*
* @return The type of resource in the Identity Store service, which is an enum object. Valid values include USER,
* GROUP, and IDENTITY_STORE.
* @see ResourceType
*/
@com.fasterxml.jackson.annotation.JsonProperty("ResourceType")
public String getResourceType() {
return this.resourceType;
}
/**
*
* The type of resource in the Identity Store service, which is an enum object. Valid values include USER, GROUP,
* and IDENTITY_STORE.
*
*
* @param resourceType
* The type of resource in the Identity Store service, which is an enum object. Valid values include USER,
* GROUP, and IDENTITY_STORE.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResourceType
*/
public ResourceNotFoundException withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* The type of resource in the Identity Store service, which is an enum object. Valid values include USER, GROUP,
* and IDENTITY_STORE.
*
*
* @param resourceType
* The type of resource in the Identity Store service, which is an enum object. Valid values include USER,
* GROUP, and IDENTITY_STORE.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResourceType
*/
public ResourceNotFoundException withResourceType(ResourceType resourceType) {
this.resourceType = resourceType.toString();
return this;
}
/**
*
* The identifier for a resource in the identity store, which can be used as UserId
or
* GroupId
. The format for ResourceId
is either UUID
or
* 1234567890-UUID
, where UUID
is a randomly generated value for each resource when it is
* created and 1234567890
represents the IdentityStoreId
string value. In the case that
* the identity store is migrated from a legacy SSO identity store, the ResourceId
for that identity
* store will be in the format of UUID
. Otherwise, it will be in the 1234567890-UUID
* format.
*
*
* @param resourceId
* The identifier for a resource in the identity store, which can be used as UserId
or
* GroupId
. The format for ResourceId
is either UUID
or
* 1234567890-UUID
, where UUID
is a randomly generated value for each resource when
* it is created and 1234567890
represents the IdentityStoreId
string value. In the
* case that the identity store is migrated from a legacy SSO identity store, the ResourceId
for
* that identity store will be in the format of UUID
. Otherwise, it will be in the
* 1234567890-UUID
format.
*/
@com.fasterxml.jackson.annotation.JsonProperty("ResourceId")
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
/**
*
* The identifier for a resource in the identity store, which can be used as UserId
or
* GroupId
. The format for ResourceId
is either UUID
or
* 1234567890-UUID
, where UUID
is a randomly generated value for each resource when it is
* created and 1234567890
represents the IdentityStoreId
string value. In the case that
* the identity store is migrated from a legacy SSO identity store, the ResourceId
for that identity
* store will be in the format of UUID
. Otherwise, it will be in the 1234567890-UUID
* format.
*
*
* @return The identifier for a resource in the identity store, which can be used as UserId
or
* GroupId
. The format for ResourceId
is either UUID
or
* 1234567890-UUID
, where UUID
is a randomly generated value for each resource
* when it is created and 1234567890
represents the IdentityStoreId
string value.
* In the case that the identity store is migrated from a legacy SSO identity store, the
* ResourceId
for that identity store will be in the format of UUID
. Otherwise, it
* will be in the 1234567890-UUID
format.
*/
@com.fasterxml.jackson.annotation.JsonProperty("ResourceId")
public String getResourceId() {
return this.resourceId;
}
/**
*
* The identifier for a resource in the identity store, which can be used as UserId
or
* GroupId
. The format for ResourceId
is either UUID
or
* 1234567890-UUID
, where UUID
is a randomly generated value for each resource when it is
* created and 1234567890
represents the IdentityStoreId
string value. In the case that
* the identity store is migrated from a legacy SSO identity store, the ResourceId
for that identity
* store will be in the format of UUID
. Otherwise, it will be in the 1234567890-UUID
* format.
*
*
* @param resourceId
* The identifier for a resource in the identity store, which can be used as UserId
or
* GroupId
. The format for ResourceId
is either UUID
or
* 1234567890-UUID
, where UUID
is a randomly generated value for each resource when
* it is created and 1234567890
represents the IdentityStoreId
string value. In the
* case that the identity store is migrated from a legacy SSO identity store, the ResourceId
for
* that identity store will be in the format of UUID
. Otherwise, it will be in the
* 1234567890-UUID
format.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResourceNotFoundException withResourceId(String resourceId) {
setResourceId(resourceId);
return this;
}
/**
*
* The identifier for each request. This value is a globally unique ID that is generated by the Identity Store
* service for each sent request, and is then returned inside the exception if the request fails.
*
*
* @param requestId
* The identifier for each request. This value is a globally unique ID that is generated by the Identity
* Store service for each sent request, and is then returned inside the exception if the request fails.
*/
@com.fasterxml.jackson.annotation.JsonProperty("RequestId")
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/**
*
* The identifier for each request. This value is a globally unique ID that is generated by the Identity Store
* service for each sent request, and is then returned inside the exception if the request fails.
*
*
* @return The identifier for each request. This value is a globally unique ID that is generated by the Identity
* Store service for each sent request, and is then returned inside the exception if the request fails.
*/
@com.fasterxml.jackson.annotation.JsonProperty("RequestId")
public String getRequestId() {
return this.requestId;
}
/**
*
* The identifier for each request. This value is a globally unique ID that is generated by the Identity Store
* service for each sent request, and is then returned inside the exception if the request fails.
*
*
* @param requestId
* The identifier for each request. This value is a globally unique ID that is generated by the Identity
* Store service for each sent request, and is then returned inside the exception if the request fails.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResourceNotFoundException withRequestId(String requestId) {
setRequestId(requestId);
return this;
}
}