1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/email/SES_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/email/model/ResponseMetadata.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Xml 21 { 22 class XmlDocument; 23 } // namespace Xml 24 } // namespace Utils 25 namespace SES 26 { 27 namespace Model 28 { 29 /** 30 * <p>A list of all identities that you have attempted to verify under your AWS 31 * account, regardless of verification status.</p><p><h3>See Also:</h3> <a 32 * href="http://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentitiesResponse">AWS 33 * API Reference</a></p> 34 */ 35 class AWS_SES_API ListIdentitiesResult 36 { 37 public: 38 ListIdentitiesResult(); 39 ListIdentitiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 40 ListIdentitiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 41 42 43 /** 44 * <p>A list of identities.</p> 45 */ GetIdentities()46 inline const Aws::Vector<Aws::String>& GetIdentities() const{ return m_identities; } 47 48 /** 49 * <p>A list of identities.</p> 50 */ SetIdentities(const Aws::Vector<Aws::String> & value)51 inline void SetIdentities(const Aws::Vector<Aws::String>& value) { m_identities = value; } 52 53 /** 54 * <p>A list of identities.</p> 55 */ SetIdentities(Aws::Vector<Aws::String> && value)56 inline void SetIdentities(Aws::Vector<Aws::String>&& value) { m_identities = std::move(value); } 57 58 /** 59 * <p>A list of identities.</p> 60 */ WithIdentities(const Aws::Vector<Aws::String> & value)61 inline ListIdentitiesResult& WithIdentities(const Aws::Vector<Aws::String>& value) { SetIdentities(value); return *this;} 62 63 /** 64 * <p>A list of identities.</p> 65 */ WithIdentities(Aws::Vector<Aws::String> && value)66 inline ListIdentitiesResult& WithIdentities(Aws::Vector<Aws::String>&& value) { SetIdentities(std::move(value)); return *this;} 67 68 /** 69 * <p>A list of identities.</p> 70 */ AddIdentities(const Aws::String & value)71 inline ListIdentitiesResult& AddIdentities(const Aws::String& value) { m_identities.push_back(value); return *this; } 72 73 /** 74 * <p>A list of identities.</p> 75 */ AddIdentities(Aws::String && value)76 inline ListIdentitiesResult& AddIdentities(Aws::String&& value) { m_identities.push_back(std::move(value)); return *this; } 77 78 /** 79 * <p>A list of identities.</p> 80 */ AddIdentities(const char * value)81 inline ListIdentitiesResult& AddIdentities(const char* value) { m_identities.push_back(value); return *this; } 82 83 84 /** 85 * <p>The token used for pagination.</p> 86 */ GetNextToken()87 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 88 89 /** 90 * <p>The token used for pagination.</p> 91 */ SetNextToken(const Aws::String & value)92 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 93 94 /** 95 * <p>The token used for pagination.</p> 96 */ SetNextToken(Aws::String && value)97 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 98 99 /** 100 * <p>The token used for pagination.</p> 101 */ SetNextToken(const char * value)102 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 103 104 /** 105 * <p>The token used for pagination.</p> 106 */ WithNextToken(const Aws::String & value)107 inline ListIdentitiesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 108 109 /** 110 * <p>The token used for pagination.</p> 111 */ WithNextToken(Aws::String && value)112 inline ListIdentitiesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 113 114 /** 115 * <p>The token used for pagination.</p> 116 */ WithNextToken(const char * value)117 inline ListIdentitiesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 118 119 120 GetResponseMetadata()121 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } 122 123 SetResponseMetadata(const ResponseMetadata & value)124 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } 125 126 SetResponseMetadata(ResponseMetadata && value)127 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } 128 129 WithResponseMetadata(const ResponseMetadata & value)130 inline ListIdentitiesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} 131 132 WithResponseMetadata(ResponseMetadata && value)133 inline ListIdentitiesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} 134 135 private: 136 137 Aws::Vector<Aws::String> m_identities; 138 139 Aws::String m_nextToken; 140 141 ResponseMetadata m_responseMetadata; 142 }; 143 144 } // namespace Model 145 } // namespace SES 146 } // namespace Aws 147