142 lines
5.1 KiB
C++
142 lines
5.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
|
|
#include <aws/pinpoint-email/PinpointEmailRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/pinpoint-email/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace PinpointEmail
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>A request to begin the verification process for an email identity (an email
|
|
* address or domain).</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateEmailIdentityRequest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_PINPOINTEMAIL_API CreateEmailIdentityRequest : public PinpointEmailRequest
|
|
{
|
|
public:
|
|
CreateEmailIdentityRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "CreateEmailIdentity"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The email address or domain that you want to verify.</p>
|
|
*/
|
|
inline const Aws::String& GetEmailIdentity() const{ return m_emailIdentity; }
|
|
|
|
/**
|
|
* <p>The email address or domain that you want to verify.</p>
|
|
*/
|
|
inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The email address or domain that you want to verify.</p>
|
|
*/
|
|
inline void SetEmailIdentity(const Aws::String& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = value; }
|
|
|
|
/**
|
|
* <p>The email address or domain that you want to verify.</p>
|
|
*/
|
|
inline void SetEmailIdentity(Aws::String&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::move(value); }
|
|
|
|
/**
|
|
* <p>The email address or domain that you want to verify.</p>
|
|
*/
|
|
inline void SetEmailIdentity(const char* value) { m_emailIdentityHasBeenSet = true; m_emailIdentity.assign(value); }
|
|
|
|
/**
|
|
* <p>The email address or domain that you want to verify.</p>
|
|
*/
|
|
inline CreateEmailIdentityRequest& WithEmailIdentity(const Aws::String& value) { SetEmailIdentity(value); return *this;}
|
|
|
|
/**
|
|
* <p>The email address or domain that you want to verify.</p>
|
|
*/
|
|
inline CreateEmailIdentityRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The email address or domain that you want to verify.</p>
|
|
*/
|
|
inline CreateEmailIdentityRequest& WithEmailIdentity(const char* value) { SetEmailIdentity(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that you want to
|
|
* associate with the email identity.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that you want to
|
|
* associate with the email identity.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that you want to
|
|
* associate with the email identity.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that you want to
|
|
* associate with the email identity.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that you want to
|
|
* associate with the email identity.</p>
|
|
*/
|
|
inline CreateEmailIdentityRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that you want to
|
|
* associate with the email identity.</p>
|
|
*/
|
|
inline CreateEmailIdentityRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that you want to
|
|
* associate with the email identity.</p>
|
|
*/
|
|
inline CreateEmailIdentityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that you want to
|
|
* associate with the email identity.</p>
|
|
*/
|
|
inline CreateEmailIdentityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_emailIdentity;
|
|
bool m_emailIdentityHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace PinpointEmail
|
|
} // namespace Aws
|