AWS SDK for C++  1.8.95
AWS SDK for C++
PushSync.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CognitoSync
23 {
24 namespace Model
25 {
26 
34  {
35  public:
36  PushSync();
38  PushSync& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
45  inline const Aws::Vector<Aws::String>& GetApplicationArns() const{ return m_applicationArns; }
46 
50  inline bool ApplicationArnsHasBeenSet() const { return m_applicationArnsHasBeenSet; }
51 
55  inline void SetApplicationArns(const Aws::Vector<Aws::String>& value) { m_applicationArnsHasBeenSet = true; m_applicationArns = value; }
56 
60  inline void SetApplicationArns(Aws::Vector<Aws::String>&& value) { m_applicationArnsHasBeenSet = true; m_applicationArns = std::move(value); }
61 
65  inline PushSync& WithApplicationArns(const Aws::Vector<Aws::String>& value) { SetApplicationArns(value); return *this;}
66 
70  inline PushSync& WithApplicationArns(Aws::Vector<Aws::String>&& value) { SetApplicationArns(std::move(value)); return *this;}
71 
75  inline PushSync& AddApplicationArns(const Aws::String& value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; }
76 
80  inline PushSync& AddApplicationArns(Aws::String&& value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(std::move(value)); return *this; }
81 
85  inline PushSync& AddApplicationArns(const char* value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; }
86 
87 
92  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
93 
98  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
99 
104  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
105 
110  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
111 
116  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
117 
122  inline PushSync& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
123 
128  inline PushSync& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
129 
134  inline PushSync& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Aws::String> m_applicationArns;
139  bool m_applicationArnsHasBeenSet;
140 
141  Aws::String m_roleArn;
142  bool m_roleArnHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace CognitoSync
147 } // namespace Aws
PushSync & WithRoleArn(const char *value)
Definition: PushSync.h:134
void SetRoleArn(const char *value)
Definition: PushSync.h:116
void SetApplicationArns(const Aws::Vector< Aws::String > &value)
Definition: PushSync.h:55
const Aws::String & GetRoleArn() const
Definition: PushSync.h:92
PushSync & WithRoleArn(Aws::String &&value)
Definition: PushSync.h:128
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetApplicationArns(Aws::Vector< Aws::String > &&value)
Definition: PushSync.h:60
bool ApplicationArnsHasBeenSet() const
Definition: PushSync.h:50
void SetRoleArn(const Aws::String &value)
Definition: PushSync.h:104
void SetRoleArn(Aws::String &&value)
Definition: PushSync.h:110
PushSync & AddApplicationArns(Aws::String &&value)
Definition: PushSync.h:80
PushSync & WithApplicationArns(Aws::Vector< Aws::String > &&value)
Definition: PushSync.h:70
PushSync & AddApplicationArns(const Aws::String &value)
Definition: PushSync.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PushSync & AddApplicationArns(const char *value)
Definition: PushSync.h:85
const Aws::Vector< Aws::String > & GetApplicationArns() const
Definition: PushSync.h:45
#define AWS_COGNITOSYNC_API
PushSync & WithRoleArn(const Aws::String &value)
Definition: PushSync.h:122
PushSync & WithApplicationArns(const Aws::Vector< Aws::String > &value)
Definition: PushSync.h:65