AWS SDK for C++  0.14.3
AWS SDK for C++
CheckIfPhoneNumberIsOptedOutResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sns/SNS_EXPORTS.h>
18 
19 namespace Aws
20 {
21 template<typename RESULT_TYPE>
22 class AmazonWebServiceResult;
23 
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlDocument;
29 } // namespace Xml
30 } // namespace Utils
31 namespace SNS
32 {
33 namespace Model
34 {
39  {
40  public:
44 
51  inline bool GetIsOptedOut() const{ return m_isOptedOut; }
52 
59  inline void SetIsOptedOut(bool value) { m_isOptedOut = value; }
60 
67  inline CheckIfPhoneNumberIsOptedOutResult& WithIsOptedOut(bool value) { SetIsOptedOut(value); return *this;}
68 
69 
70  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
71 
72 
73  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
74 
75 
76  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
77 
78 
79  inline CheckIfPhoneNumberIsOptedOutResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
80 
81 
82  inline CheckIfPhoneNumberIsOptedOutResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
83 
84  private:
85  bool m_isOptedOut;
86  ResponseMetadata m_responseMetadata;
87  };
88 
89 } // namespace Model
90 } // namespace SNS
91 } // namespace Aws
CheckIfPhoneNumberIsOptedOutResult & WithResponseMetadata(ResponseMetadata &&value)
CheckIfPhoneNumberIsOptedOutResult & WithIsOptedOut(bool value)
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:37
CheckIfPhoneNumberIsOptedOutResult & WithResponseMetadata(const ResponseMetadata &value)
JSON (JavaScript Object Notation).