1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/amplifybackend/AmplifyBackend_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace AmplifyBackend 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Describes Apple social federation configurations for allowing your app users 28 * to sign in using OAuth.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/BackendAuthAppleProviderConfig">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_AMPLIFYBACKEND_API BackendAuthAppleProviderConfig 33 { 34 public: 35 BackendAuthAppleProviderConfig(); 36 BackendAuthAppleProviderConfig(Aws::Utils::Json::JsonView jsonValue); 37 BackendAuthAppleProviderConfig& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>Describes the client_id (also called Services ID) that comes from Apple.</p> 43 */ GetClientId()44 inline const Aws::String& GetClientId() const{ return m_clientId; } 45 46 /** 47 * <p>Describes the client_id (also called Services ID) that comes from Apple.</p> 48 */ ClientIdHasBeenSet()49 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } 50 51 /** 52 * <p>Describes the client_id (also called Services ID) that comes from Apple.</p> 53 */ SetClientId(const Aws::String & value)54 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } 55 56 /** 57 * <p>Describes the client_id (also called Services ID) that comes from Apple.</p> 58 */ SetClientId(Aws::String && value)59 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } 60 61 /** 62 * <p>Describes the client_id (also called Services ID) that comes from Apple.</p> 63 */ SetClientId(const char * value)64 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } 65 66 /** 67 * <p>Describes the client_id (also called Services ID) that comes from Apple.</p> 68 */ WithClientId(const Aws::String & value)69 inline BackendAuthAppleProviderConfig& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} 70 71 /** 72 * <p>Describes the client_id (also called Services ID) that comes from Apple.</p> 73 */ WithClientId(Aws::String && value)74 inline BackendAuthAppleProviderConfig& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} 75 76 /** 77 * <p>Describes the client_id (also called Services ID) that comes from Apple.</p> 78 */ WithClientId(const char * value)79 inline BackendAuthAppleProviderConfig& WithClientId(const char* value) { SetClientId(value); return *this;} 80 81 82 /** 83 * <p>Describes the key_id that comes from Apple.</p> 84 */ GetKeyId()85 inline const Aws::String& GetKeyId() const{ return m_keyId; } 86 87 /** 88 * <p>Describes the key_id that comes from Apple.</p> 89 */ KeyIdHasBeenSet()90 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; } 91 92 /** 93 * <p>Describes the key_id that comes from Apple.</p> 94 */ SetKeyId(const Aws::String & value)95 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; } 96 97 /** 98 * <p>Describes the key_id that comes from Apple.</p> 99 */ SetKeyId(Aws::String && value)100 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); } 101 102 /** 103 * <p>Describes the key_id that comes from Apple.</p> 104 */ SetKeyId(const char * value)105 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); } 106 107 /** 108 * <p>Describes the key_id that comes from Apple.</p> 109 */ WithKeyId(const Aws::String & value)110 inline BackendAuthAppleProviderConfig& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;} 111 112 /** 113 * <p>Describes the key_id that comes from Apple.</p> 114 */ WithKeyId(Aws::String && value)115 inline BackendAuthAppleProviderConfig& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;} 116 117 /** 118 * <p>Describes the key_id that comes from Apple.</p> 119 */ WithKeyId(const char * value)120 inline BackendAuthAppleProviderConfig& WithKeyId(const char* value) { SetKeyId(value); return *this;} 121 122 123 /** 124 * <p>Describes the private_key that comes from Apple.</p> 125 */ GetPrivateKey()126 inline const Aws::String& GetPrivateKey() const{ return m_privateKey; } 127 128 /** 129 * <p>Describes the private_key that comes from Apple.</p> 130 */ PrivateKeyHasBeenSet()131 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; } 132 133 /** 134 * <p>Describes the private_key that comes from Apple.</p> 135 */ SetPrivateKey(const Aws::String & value)136 inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; } 137 138 /** 139 * <p>Describes the private_key that comes from Apple.</p> 140 */ SetPrivateKey(Aws::String && value)141 inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); } 142 143 /** 144 * <p>Describes the private_key that comes from Apple.</p> 145 */ SetPrivateKey(const char * value)146 inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); } 147 148 /** 149 * <p>Describes the private_key that comes from Apple.</p> 150 */ WithPrivateKey(const Aws::String & value)151 inline BackendAuthAppleProviderConfig& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;} 152 153 /** 154 * <p>Describes the private_key that comes from Apple.</p> 155 */ WithPrivateKey(Aws::String && value)156 inline BackendAuthAppleProviderConfig& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;} 157 158 /** 159 * <p>Describes the private_key that comes from Apple.</p> 160 */ WithPrivateKey(const char * value)161 inline BackendAuthAppleProviderConfig& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;} 162 163 164 /** 165 * <p>Describes the team_id that comes from Apple.</p> 166 */ GetTeamId()167 inline const Aws::String& GetTeamId() const{ return m_teamId; } 168 169 /** 170 * <p>Describes the team_id that comes from Apple.</p> 171 */ TeamIdHasBeenSet()172 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; } 173 174 /** 175 * <p>Describes the team_id that comes from Apple.</p> 176 */ SetTeamId(const Aws::String & value)177 inline void SetTeamId(const Aws::String& value) { m_teamIdHasBeenSet = true; m_teamId = value; } 178 179 /** 180 * <p>Describes the team_id that comes from Apple.</p> 181 */ SetTeamId(Aws::String && value)182 inline void SetTeamId(Aws::String&& value) { m_teamIdHasBeenSet = true; m_teamId = std::move(value); } 183 184 /** 185 * <p>Describes the team_id that comes from Apple.</p> 186 */ SetTeamId(const char * value)187 inline void SetTeamId(const char* value) { m_teamIdHasBeenSet = true; m_teamId.assign(value); } 188 189 /** 190 * <p>Describes the team_id that comes from Apple.</p> 191 */ WithTeamId(const Aws::String & value)192 inline BackendAuthAppleProviderConfig& WithTeamId(const Aws::String& value) { SetTeamId(value); return *this;} 193 194 /** 195 * <p>Describes the team_id that comes from Apple.</p> 196 */ WithTeamId(Aws::String && value)197 inline BackendAuthAppleProviderConfig& WithTeamId(Aws::String&& value) { SetTeamId(std::move(value)); return *this;} 198 199 /** 200 * <p>Describes the team_id that comes from Apple.</p> 201 */ WithTeamId(const char * value)202 inline BackendAuthAppleProviderConfig& WithTeamId(const char* value) { SetTeamId(value); return *this;} 203 204 private: 205 206 Aws::String m_clientId; 207 bool m_clientIdHasBeenSet; 208 209 Aws::String m_keyId; 210 bool m_keyIdHasBeenSet; 211 212 Aws::String m_privateKey; 213 bool m_privateKeyHasBeenSet; 214 215 Aws::String m_teamId; 216 bool m_teamIdHasBeenSet; 217 }; 218 219 } // namespace Model 220 } // namespace AmplifyBackend 221 } // namespace Aws 222