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

Specifies the status and settings of the APNs (Apple Push Notification * service) sandbox channel for an application.

See Also:

AWS * API Reference

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

The bundle identifier that's assigned to your iOS app. This identifier is * used for APNs tokens.

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** *

The bundle identifier that's assigned to your iOS app. This identifier is * used for APNs tokens.

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** *

The bundle identifier that's assigned to your iOS app. This identifier is * used for APNs tokens.

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** *

The bundle identifier that's assigned to your iOS app. This identifier is * used for APNs tokens.

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** *

The bundle identifier that's assigned to your iOS app. This identifier is * used for APNs tokens.

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** *

The bundle identifier that's assigned to your iOS app. This identifier is * used for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** *

The bundle identifier that's assigned to your iOS app. This identifier is * used for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** *

The bundle identifier that's assigned to your iOS app. This identifier is * used for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;} /** *

The APNs client certificate that you received from Apple, if you want Amazon * Pinpoint to communicate with the APNs sandbox environment by using an APNs * certificate.

*/ inline const Aws::String& GetCertificate() const{ return m_certificate; } /** *

The APNs client certificate that you received from Apple, if you want Amazon * Pinpoint to communicate with the APNs sandbox environment by using an APNs * certificate.

*/ inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; } /** *

The APNs client certificate that you received from Apple, if you want Amazon * Pinpoint to communicate with the APNs sandbox environment by using an APNs * certificate.

*/ inline void SetCertificate(const Aws::String& value) { m_certificateHasBeenSet = true; m_certificate = value; } /** *

The APNs client certificate that you received from Apple, if you want Amazon * Pinpoint to communicate with the APNs sandbox environment by using an APNs * certificate.

*/ inline void SetCertificate(Aws::String&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); } /** *

The APNs client certificate that you received from Apple, if you want Amazon * Pinpoint to communicate with the APNs sandbox environment by using an APNs * certificate.

*/ inline void SetCertificate(const char* value) { m_certificateHasBeenSet = true; m_certificate.assign(value); } /** *

The APNs client certificate that you received from Apple, if you want Amazon * Pinpoint to communicate with the APNs sandbox environment by using an APNs * certificate.

*/ inline APNSSandboxChannelRequest& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;} /** *

The APNs client certificate that you received from Apple, if you want Amazon * Pinpoint to communicate with the APNs sandbox environment by using an APNs * certificate.

*/ inline APNSSandboxChannelRequest& WithCertificate(Aws::String&& value) { SetCertificate(std::move(value)); return *this;} /** *

The APNs client certificate that you received from Apple, if you want Amazon * Pinpoint to communicate with the APNs sandbox environment by using an APNs * certificate.

*/ inline APNSSandboxChannelRequest& WithCertificate(const char* value) { SetCertificate(value); return *this;} /** *

The default authentication method that you want Amazon Pinpoint to use when * authenticating with the APNs sandbox environment, key or certificate.

*/ inline const Aws::String& GetDefaultAuthenticationMethod() const{ return m_defaultAuthenticationMethod; } /** *

The default authentication method that you want Amazon Pinpoint to use when * authenticating with the APNs sandbox environment, key or certificate.

*/ inline bool DefaultAuthenticationMethodHasBeenSet() const { return m_defaultAuthenticationMethodHasBeenSet; } /** *

The default authentication method that you want Amazon Pinpoint to use when * authenticating with the APNs sandbox environment, key or certificate.

*/ inline void SetDefaultAuthenticationMethod(const Aws::String& value) { m_defaultAuthenticationMethodHasBeenSet = true; m_defaultAuthenticationMethod = value; } /** *

The default authentication method that you want Amazon Pinpoint to use when * authenticating with the APNs sandbox environment, key or certificate.

*/ inline void SetDefaultAuthenticationMethod(Aws::String&& value) { m_defaultAuthenticationMethodHasBeenSet = true; m_defaultAuthenticationMethod = std::move(value); } /** *

The default authentication method that you want Amazon Pinpoint to use when * authenticating with the APNs sandbox environment, key or certificate.

*/ inline void SetDefaultAuthenticationMethod(const char* value) { m_defaultAuthenticationMethodHasBeenSet = true; m_defaultAuthenticationMethod.assign(value); } /** *

The default authentication method that you want Amazon Pinpoint to use when * authenticating with the APNs sandbox environment, key or certificate.

*/ inline APNSSandboxChannelRequest& WithDefaultAuthenticationMethod(const Aws::String& value) { SetDefaultAuthenticationMethod(value); return *this;} /** *

The default authentication method that you want Amazon Pinpoint to use when * authenticating with the APNs sandbox environment, key or certificate.

*/ inline APNSSandboxChannelRequest& WithDefaultAuthenticationMethod(Aws::String&& value) { SetDefaultAuthenticationMethod(std::move(value)); return *this;} /** *

The default authentication method that you want Amazon Pinpoint to use when * authenticating with the APNs sandbox environment, key or certificate.

*/ inline APNSSandboxChannelRequest& WithDefaultAuthenticationMethod(const char* value) { SetDefaultAuthenticationMethod(value); return *this;} /** *

Specifies whether to enable the APNs sandbox channel for the application.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Specifies whether to enable the APNs sandbox channel for the application.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Specifies whether to enable the APNs sandbox channel for the application.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Specifies whether to enable the APNs sandbox channel for the application.

*/ inline APNSSandboxChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The private key for the APNs client certificate that you want Amazon Pinpoint * to use to communicate with the APNs sandbox environment.

*/ inline const Aws::String& GetPrivateKey() const{ return m_privateKey; } /** *

The private key for the APNs client certificate that you want Amazon Pinpoint * to use to communicate with the APNs sandbox environment.

*/ inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; } /** *

The private key for the APNs client certificate that you want Amazon Pinpoint * to use to communicate with the APNs sandbox environment.

*/ inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; } /** *

The private key for the APNs client certificate that you want Amazon Pinpoint * to use to communicate with the APNs sandbox environment.

*/ inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); } /** *

The private key for the APNs client certificate that you want Amazon Pinpoint * to use to communicate with the APNs sandbox environment.

*/ inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); } /** *

The private key for the APNs client certificate that you want Amazon Pinpoint * to use to communicate with the APNs sandbox environment.

*/ inline APNSSandboxChannelRequest& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;} /** *

The private key for the APNs client certificate that you want Amazon Pinpoint * to use to communicate with the APNs sandbox environment.

*/ inline APNSSandboxChannelRequest& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;} /** *

The private key for the APNs client certificate that you want Amazon Pinpoint * to use to communicate with the APNs sandbox environment.

*/ inline APNSSandboxChannelRequest& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;} /** *

The identifier that's assigned to your Apple developer account team. This * identifier is used for APNs tokens.

*/ inline const Aws::String& GetTeamId() const{ return m_teamId; } /** *

The identifier that's assigned to your Apple developer account team. This * identifier is used for APNs tokens.

*/ inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; } /** *

The identifier that's assigned to your Apple developer account team. This * identifier is used for APNs tokens.

*/ inline void SetTeamId(const Aws::String& value) { m_teamIdHasBeenSet = true; m_teamId = value; } /** *

The identifier that's assigned to your Apple developer account team. This * identifier is used for APNs tokens.

*/ inline void SetTeamId(Aws::String&& value) { m_teamIdHasBeenSet = true; m_teamId = std::move(value); } /** *

The identifier that's assigned to your Apple developer account team. This * identifier is used for APNs tokens.

*/ inline void SetTeamId(const char* value) { m_teamIdHasBeenSet = true; m_teamId.assign(value); } /** *

The identifier that's assigned to your Apple developer account team. This * identifier is used for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithTeamId(const Aws::String& value) { SetTeamId(value); return *this;} /** *

The identifier that's assigned to your Apple developer account team. This * identifier is used for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithTeamId(Aws::String&& value) { SetTeamId(std::move(value)); return *this;} /** *

The identifier that's assigned to your Apple developer account team. This * identifier is used for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithTeamId(const char* value) { SetTeamId(value); return *this;} /** *

The authentication key to use for APNs tokens.

*/ inline const Aws::String& GetTokenKey() const{ return m_tokenKey; } /** *

The authentication key to use for APNs tokens.

*/ inline bool TokenKeyHasBeenSet() const { return m_tokenKeyHasBeenSet; } /** *

The authentication key to use for APNs tokens.

*/ inline void SetTokenKey(const Aws::String& value) { m_tokenKeyHasBeenSet = true; m_tokenKey = value; } /** *

The authentication key to use for APNs tokens.

*/ inline void SetTokenKey(Aws::String&& value) { m_tokenKeyHasBeenSet = true; m_tokenKey = std::move(value); } /** *

The authentication key to use for APNs tokens.

*/ inline void SetTokenKey(const char* value) { m_tokenKeyHasBeenSet = true; m_tokenKey.assign(value); } /** *

The authentication key to use for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithTokenKey(const Aws::String& value) { SetTokenKey(value); return *this;} /** *

The authentication key to use for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithTokenKey(Aws::String&& value) { SetTokenKey(std::move(value)); return *this;} /** *

The authentication key to use for APNs tokens.

*/ inline APNSSandboxChannelRequest& WithTokenKey(const char* value) { SetTokenKey(value); return *this;} /** *

The key identifier that's assigned to your APNs signing key, if you want * Amazon Pinpoint to communicate with the APNs sandbox environment by using APNs * tokens.

*/ inline const Aws::String& GetTokenKeyId() const{ return m_tokenKeyId; } /** *

The key identifier that's assigned to your APNs signing key, if you want * Amazon Pinpoint to communicate with the APNs sandbox environment by using APNs * tokens.

*/ inline bool TokenKeyIdHasBeenSet() const { return m_tokenKeyIdHasBeenSet; } /** *

The key identifier that's assigned to your APNs signing key, if you want * Amazon Pinpoint to communicate with the APNs sandbox environment by using APNs * tokens.

*/ inline void SetTokenKeyId(const Aws::String& value) { m_tokenKeyIdHasBeenSet = true; m_tokenKeyId = value; } /** *

The key identifier that's assigned to your APNs signing key, if you want * Amazon Pinpoint to communicate with the APNs sandbox environment by using APNs * tokens.

*/ inline void SetTokenKeyId(Aws::String&& value) { m_tokenKeyIdHasBeenSet = true; m_tokenKeyId = std::move(value); } /** *

The key identifier that's assigned to your APNs signing key, if you want * Amazon Pinpoint to communicate with the APNs sandbox environment by using APNs * tokens.

*/ inline void SetTokenKeyId(const char* value) { m_tokenKeyIdHasBeenSet = true; m_tokenKeyId.assign(value); } /** *

The key identifier that's assigned to your APNs signing key, if you want * Amazon Pinpoint to communicate with the APNs sandbox environment by using APNs * tokens.

*/ inline APNSSandboxChannelRequest& WithTokenKeyId(const Aws::String& value) { SetTokenKeyId(value); return *this;} /** *

The key identifier that's assigned to your APNs signing key, if you want * Amazon Pinpoint to communicate with the APNs sandbox environment by using APNs * tokens.

*/ inline APNSSandboxChannelRequest& WithTokenKeyId(Aws::String&& value) { SetTokenKeyId(std::move(value)); return *this;} /** *

The key identifier that's assigned to your APNs signing key, if you want * Amazon Pinpoint to communicate with the APNs sandbox environment by using APNs * tokens.

*/ inline APNSSandboxChannelRequest& WithTokenKeyId(const char* value) { SetTokenKeyId(value); return *this;} private: Aws::String m_bundleId; bool m_bundleIdHasBeenSet = false; Aws::String m_certificate; bool m_certificateHasBeenSet = false; Aws::String m_defaultAuthenticationMethod; bool m_defaultAuthenticationMethodHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_privateKey; bool m_privateKeyHasBeenSet = false; Aws::String m_teamId; bool m_teamIdHasBeenSet = false; Aws::String m_tokenKey; bool m_tokenKeyHasBeenSet = false; Aws::String m_tokenKeyId; bool m_tokenKeyIdHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws