AWS SDK for C++  0.12.9
AWS SDK for C++
RecentCaseCommunications.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace Support
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  RecentCaseCommunications& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::Vector<Communication>& GetCommunications() const{ return m_communications; }
50 
54  inline void SetCommunications(const Aws::Vector<Communication>& value) { m_communicationsHasBeenSet = true; m_communications = value; }
55 
59  inline void SetCommunications(Aws::Vector<Communication>&& value) { m_communicationsHasBeenSet = true; m_communications = value; }
60 
64  inline RecentCaseCommunications& WithCommunications(const Aws::Vector<Communication>& value) { SetCommunications(value); return *this;}
65 
69  inline RecentCaseCommunications& WithCommunications(Aws::Vector<Communication>&& value) { SetCommunications(value); return *this;}
70 
74  inline RecentCaseCommunications& AddCommunications(const Communication& value) { m_communicationsHasBeenSet = true; m_communications.push_back(value); return *this; }
75 
79  inline RecentCaseCommunications& AddCommunications(Communication&& value) { m_communicationsHasBeenSet = true; m_communications.push_back(value); return *this; }
80 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
89  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
90 
94  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 
99  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
100 
104  inline RecentCaseCommunications& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
105 
109  inline RecentCaseCommunications& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
110 
114  inline RecentCaseCommunications& WithNextToken(const char* value) { SetNextToken(value); return *this;}
115 
116  private:
117  Aws::Vector<Communication> m_communications;
118  bool m_communicationsHasBeenSet;
119  Aws::String m_nextToken;
120  bool m_nextTokenHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace Support
125 } // namespace Aws
RecentCaseCommunications & AddCommunications(const Communication &value)
RecentCaseCommunications & WithNextToken(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
RecentCaseCommunications & WithNextToken(Aws::String &&value)
RecentCaseCommunications & WithCommunications(const Aws::Vector< Communication > &value)
RecentCaseCommunications & AddCommunications(Communication &&value)
RecentCaseCommunications & WithNextToken(const char *value)
void SetCommunications(const Aws::Vector< Communication > &value)
#define AWS_SUPPORT_API
const Aws::Vector< Communication > & GetCommunications() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCommunications(Aws::Vector< Communication > &&value)
RecentCaseCommunications & WithCommunications(Aws::Vector< Communication > &&value)
JSON (JavaScript Object Notation).