/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IdentityStore { namespace Model { /** *

Indicates that a requested resource is not found.

See Also:

* AWS * API Reference

*/ class ResourceNotFoundException { public: AWS_IDENTITYSTORE_API ResourceNotFoundException(); AWS_IDENTITYSTORE_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue); AWS_IDENTITYSTORE_API ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An enum object indicating the type of resource in the identity store service. * Valid values include USER, GROUP, and IDENTITY_STORE.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

An enum object indicating the type of resource in the identity store service. * Valid values include USER, GROUP, and IDENTITY_STORE.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

An enum object indicating the type of resource in the identity store service. * Valid values include USER, GROUP, and IDENTITY_STORE.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

An enum object indicating the type of resource in the identity store service. * Valid values include USER, GROUP, and IDENTITY_STORE.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

An enum object indicating the type of resource in the identity store service. * Valid values include USER, GROUP, and IDENTITY_STORE.

*/ inline ResourceNotFoundException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

An enum object indicating the type of resource in the identity store service. * Valid values include USER, GROUP, and IDENTITY_STORE.

*/ inline ResourceNotFoundException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The identifier for a resource in the identity store that 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.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The identifier for a resource in the identity store that 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.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The identifier for a resource in the identity store that 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.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The identifier for a resource in the identity store that 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.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The identifier for a resource in the identity store that 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.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The identifier for a resource in the identity store that 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.

*/ inline ResourceNotFoundException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The identifier for a resource in the identity store that 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.

*/ inline ResourceNotFoundException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The identifier for a resource in the identity store that 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.

*/ inline ResourceNotFoundException& WithResourceId(const char* value) { SetResourceId(value); return *this;} inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); 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.

*/ inline const Aws::String& GetRequestId() const{ return m_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.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

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.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

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.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

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.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

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.

*/ inline ResourceNotFoundException& WithRequestId(const Aws::String& value) { SetRequestId(value); 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.

*/ inline ResourceNotFoundException& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); 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.

*/ inline ResourceNotFoundException& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace IdentityStore } // namespace Aws