AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchUpdatePhoneNumberResult.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/model/PhoneNumberError.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Chime {
24namespace Model {
26 public:
27 AWS_CHIME_API BatchUpdatePhoneNumberResult() = default;
30
32
37 inline const Aws::Vector<PhoneNumberError>& GetPhoneNumberErrors() const { return m_phoneNumberErrors; }
38 template <typename PhoneNumberErrorsT = Aws::Vector<PhoneNumberError>>
39 void SetPhoneNumberErrors(PhoneNumberErrorsT&& value) {
40 m_phoneNumberErrorsHasBeenSet = true;
41 m_phoneNumberErrors = std::forward<PhoneNumberErrorsT>(value);
42 }
43 template <typename PhoneNumberErrorsT = Aws::Vector<PhoneNumberError>>
45 SetPhoneNumberErrors(std::forward<PhoneNumberErrorsT>(value));
46 return *this;
47 }
48 template <typename PhoneNumberErrorsT = PhoneNumberError>
50 m_phoneNumberErrorsHasBeenSet = true;
51 m_phoneNumberErrors.emplace_back(std::forward<PhoneNumberErrorsT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template <typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) {
61 m_requestIdHasBeenSet = true;
62 m_requestId = std::forward<RequestIdT>(value);
63 }
64 template <typename RequestIdT = Aws::String>
66 SetRequestId(std::forward<RequestIdT>(value));
67 return *this;
68 }
70 private:
71 Aws::Vector<PhoneNumberError> m_phoneNumberErrors;
72
73 Aws::String m_requestId;
74 bool m_phoneNumberErrorsHasBeenSet = false;
75 bool m_requestIdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Chime
80} // namespace Aws
BatchUpdatePhoneNumberResult & WithRequestId(RequestIdT &&value)
AWS_CHIME_API BatchUpdatePhoneNumberResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< PhoneNumberError > & GetPhoneNumberErrors() const
AWS_CHIME_API BatchUpdatePhoneNumberResult()=default
AWS_CHIME_API BatchUpdatePhoneNumberResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchUpdatePhoneNumberResult & WithPhoneNumberErrors(PhoneNumberErrorsT &&value)
BatchUpdatePhoneNumberResult & AddPhoneNumberErrors(PhoneNumberErrorsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue