/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/chime-sdk-meetings/ChimeSDKMeetings_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ChimeSDKMeetings { namespace Model { /** * <p>The list of errors returned when errors are encountered during the * BatchCreateAttendee and CreateAttendee actions. This includes external user IDs, * error codes, and error messages.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/CreateAttendeeError">AWS * API Reference</a></p> */ class CreateAttendeeError { public: AWS_CHIMESDKMEETINGS_API CreateAttendeeError(); AWS_CHIMESDKMEETINGS_API CreateAttendeeError(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKMEETINGS_API CreateAttendeeError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKMEETINGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The Amazon Chime SDK external user ID. An idempotency token. Links the * attendee to an identity managed by a builder application.</p> <p>Pattern: * <code>[-_&@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> </p> <p>Values that * begin with <code>aws:</code> are reserved. You can't configure a value that uses * this prefix. Case insensitive.</p> */ inline const Aws::String& GetExternalUserId() const{ return m_externalUserId; } /** * <p>The Amazon Chime SDK external user ID. An idempotency token. Links the * attendee to an identity managed by a builder application.</p> <p>Pattern: * <code>[-_&@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> </p> <p>Values that * begin with <code>aws:</code> are reserved. You can't configure a value that uses * this prefix. Case insensitive.</p> */ inline bool ExternalUserIdHasBeenSet() const { return m_externalUserIdHasBeenSet; } /** * <p>The Amazon Chime SDK external user ID. An idempotency token. Links the * attendee to an identity managed by a builder application.</p> <p>Pattern: * <code>[-_&@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> </p> <p>Values that * begin with <code>aws:</code> are reserved. You can't configure a value that uses * this prefix. Case insensitive.</p> */ inline void SetExternalUserId(const Aws::String& value) { m_externalUserIdHasBeenSet = true; m_externalUserId = value; } /** * <p>The Amazon Chime SDK external user ID. An idempotency token. Links the * attendee to an identity managed by a builder application.</p> <p>Pattern: * <code>[-_&@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> </p> <p>Values that * begin with <code>aws:</code> are reserved. You can't configure a value that uses * this prefix. Case insensitive.</p> */ inline void SetExternalUserId(Aws::String&& value) { m_externalUserIdHasBeenSet = true; m_externalUserId = std::move(value); } /** * <p>The Amazon Chime SDK external user ID. An idempotency token. Links the * attendee to an identity managed by a builder application.</p> <p>Pattern: * <code>[-_&@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> </p> <p>Values that * begin with <code>aws:</code> are reserved. You can't configure a value that uses * this prefix. Case insensitive.</p> */ inline void SetExternalUserId(const char* value) { m_externalUserIdHasBeenSet = true; m_externalUserId.assign(value); } /** * <p>The Amazon Chime SDK external user ID. An idempotency token. Links the * attendee to an identity managed by a builder application.</p> <p>Pattern: * <code>[-_&@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> </p> <p>Values that * begin with <code>aws:</code> are reserved. You can't configure a value that uses * this prefix. Case insensitive.</p> */ inline CreateAttendeeError& WithExternalUserId(const Aws::String& value) { SetExternalUserId(value); return *this;} /** * <p>The Amazon Chime SDK external user ID. An idempotency token. Links the * attendee to an identity managed by a builder application.</p> <p>Pattern: * <code>[-_&@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> </p> <p>Values that * begin with <code>aws:</code> are reserved. You can't configure a value that uses * this prefix. Case insensitive.</p> */ inline CreateAttendeeError& WithExternalUserId(Aws::String&& value) { SetExternalUserId(std::move(value)); return *this;} /** * <p>The Amazon Chime SDK external user ID. An idempotency token. Links the * attendee to an identity managed by a builder application.</p> <p>Pattern: * <code>[-_&@+=,(){}\[\]\/«».:|'"#a-zA-Z0-9À-ÿ\s]*</code> </p> <p>Values that * begin with <code>aws:</code> are reserved. You can't configure a value that uses * this prefix. Case insensitive.</p> */ inline CreateAttendeeError& WithExternalUserId(const char* value) { SetExternalUserId(value); return *this;} /** * <p>The error code.</p> */ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** * <p>The error code.</p> */ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** * <p>The error code.</p> */ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** * <p>The error code.</p> */ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** * <p>The error code.</p> */ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** * <p>The error code.</p> */ inline CreateAttendeeError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** * <p>The error code.</p> */ inline CreateAttendeeError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** * <p>The error code.</p> */ inline CreateAttendeeError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** * <p>The error message.</p> */ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** * <p>The error message.</p> */ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** * <p>The error message.</p> */ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** * <p>The error message.</p> */ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** * <p>The error message.</p> */ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** * <p>The error message.</p> */ inline CreateAttendeeError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** * <p>The error message.</p> */ inline CreateAttendeeError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** * <p>The error message.</p> */ inline CreateAttendeeError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_externalUserId; bool m_externalUserIdHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMeetings } // namespace Aws