/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CognitoSync { namespace Model { /** *

Configuration options to be applied to the identity pool.

See * Also:

AWS * API Reference

*/ class PushSync { public: AWS_COGNITOSYNC_API PushSync(); AWS_COGNITOSYNC_API PushSync(Aws::Utils::Json::JsonView jsonValue); AWS_COGNITOSYNC_API PushSync& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline const Aws::Vector& GetApplicationArns() const{ return m_applicationArns; } /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline bool ApplicationArnsHasBeenSet() const { return m_applicationArnsHasBeenSet; } /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline void SetApplicationArns(const Aws::Vector& value) { m_applicationArnsHasBeenSet = true; m_applicationArns = value; } /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline void SetApplicationArns(Aws::Vector&& value) { m_applicationArnsHasBeenSet = true; m_applicationArns = std::move(value); } /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline PushSync& WithApplicationArns(const Aws::Vector& value) { SetApplicationArns(value); return *this;} /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline PushSync& WithApplicationArns(Aws::Vector&& value) { SetApplicationArns(std::move(value)); return *this;} /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline PushSync& AddApplicationArns(const Aws::String& value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; } /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline PushSync& AddApplicationArns(Aws::String&& value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(std::move(value)); return *this; } /** *

List of SNS platform application ARNs that could be used by clients.

*/ inline PushSync& AddApplicationArns(const char* value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; } /** *

A role configured to allow Cognito to call SNS on behalf of the * developer.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

A role configured to allow Cognito to call SNS on behalf of the * developer.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

A role configured to allow Cognito to call SNS on behalf of the * developer.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

A role configured to allow Cognito to call SNS on behalf of the * developer.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

A role configured to allow Cognito to call SNS on behalf of the * developer.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

A role configured to allow Cognito to call SNS on behalf of the * developer.

*/ inline PushSync& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

A role configured to allow Cognito to call SNS on behalf of the * developer.

*/ inline PushSync& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

A role configured to allow Cognito to call SNS on behalf of the * developer.

*/ inline PushSync& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::Vector m_applicationArns; bool m_applicationArnsHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace CognitoSync } // namespace Aws