AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PushSync.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CognitoSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COGNITOSYNC_API PushSync();
37 AWS_COGNITOSYNC_API PushSync(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COGNITOSYNC_API PushSync& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetApplicationArns() const{ return m_applicationArns; }
47 inline bool ApplicationArnsHasBeenSet() const { return m_applicationArnsHasBeenSet; }
48 inline void SetApplicationArns(const Aws::Vector<Aws::String>& value) { m_applicationArnsHasBeenSet = true; m_applicationArns = value; }
49 inline void SetApplicationArns(Aws::Vector<Aws::String>&& value) { m_applicationArnsHasBeenSet = true; m_applicationArns = std::move(value); }
50 inline PushSync& WithApplicationArns(const Aws::Vector<Aws::String>& value) { SetApplicationArns(value); return *this;}
51 inline PushSync& WithApplicationArns(Aws::Vector<Aws::String>&& value) { SetApplicationArns(std::move(value)); return *this;}
52 inline PushSync& AddApplicationArns(const Aws::String& value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; }
53 inline PushSync& AddApplicationArns(Aws::String&& value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(std::move(value)); return *this; }
54 inline PushSync& AddApplicationArns(const char* value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; }
56
58
62 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
63 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
64 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
65 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
66 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
67 inline PushSync& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
68 inline PushSync& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
69 inline PushSync& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
71 private:
72
73 Aws::Vector<Aws::String> m_applicationArns;
74 bool m_applicationArnsHasBeenSet = false;
75
76 Aws::String m_roleArn;
77 bool m_roleArnHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CognitoSync
82} // namespace Aws
void SetRoleArn(const char *value)
Definition PushSync.h:66
void SetRoleArn(const Aws::String &value)
Definition PushSync.h:64
AWS_COGNITOSYNC_API PushSync & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ApplicationArnsHasBeenSet() const
Definition PushSync.h:47
const Aws::Vector< Aws::String > & GetApplicationArns() const
Definition PushSync.h:46
PushSync & WithRoleArn(Aws::String &&value)
Definition PushSync.h:68
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetApplicationArns(const Aws::Vector< Aws::String > &value)
Definition PushSync.h:48
AWS_COGNITOSYNC_API PushSync()
PushSync & AddApplicationArns(const Aws::String &value)
Definition PushSync.h:52
PushSync & WithApplicationArns(const Aws::Vector< Aws::String > &value)
Definition PushSync.h:50
void SetRoleArn(Aws::String &&value)
Definition PushSync.h:65
PushSync & AddApplicationArns(const char *value)
Definition PushSync.h:54
void SetApplicationArns(Aws::Vector< Aws::String > &&value)
Definition PushSync.h:49
PushSync & WithApplicationArns(Aws::Vector< Aws::String > &&value)
Definition PushSync.h:51
const Aws::String & GetRoleArn() const
Definition PushSync.h:62
PushSync & WithRoleArn(const char *value)
Definition PushSync.h:69
AWS_COGNITOSYNC_API PushSync(Aws::Utils::Json::JsonView jsonValue)
PushSync & AddApplicationArns(Aws::String &&value)
Definition PushSync.h:53
PushSync & WithRoleArn(const Aws::String &value)
Definition PushSync.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue