/sdk/src/Services/CognitoIdentityProvider/Generated/Model/SignUpRequest.cs

https://gitlab.com/CORP-RESELLER/aws-sdk-net · C# · 154 lines · 73 code · 16 blank · 65 comment · 8 complexity · 87e64031d4cb196fa1824a70f37735ed MD5 · raw file

  1. /*
  2. * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License").
  5. * You may not use this file except in compliance with the License.
  6. * A copy of the License is located at
  7. *
  8. * http://aws.amazon.com/apache2.0
  9. *
  10. * or in the "license" file accompanying this file. This file is distributed
  11. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. * express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. /*
  16. * Do not modify this file. This file is generated from the cognito-idp-2016-04-18.normal.json service model.
  17. */
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Xml.Serialization;
  21. using System.Text;
  22. using System.IO;
  23. using Amazon.Runtime;
  24. using Amazon.Runtime.Internal;
  25. namespace Amazon.CognitoIdentityProvider.Model
  26. {
  27. /// <summary>
  28. /// Container for the parameters to the SignUp operation.
  29. /// Registers the user in the specified user pool and creates a user name, password, and
  30. /// user attributes.
  31. /// </summary>
  32. public partial class SignUpRequest : AmazonCognitoIdentityProviderRequest
  33. {
  34. private string _clientId;
  35. private string _password;
  36. private string _secretHash;
  37. private List<AttributeType> _userAttributes = new List<AttributeType>();
  38. private string _username;
  39. private List<AttributeType> _validationData = new List<AttributeType>();
  40. /// <summary>
  41. /// Gets and sets the property ClientId.
  42. /// <para>
  43. /// The ID of the client associated with the user pool.
  44. /// </para>
  45. /// </summary>
  46. public string ClientId
  47. {
  48. get { return this._clientId; }
  49. set { this._clientId = value; }
  50. }
  51. // Check to see if ClientId property is set
  52. internal bool IsSetClientId()
  53. {
  54. return this._clientId != null;
  55. }
  56. /// <summary>
  57. /// Gets and sets the property Password.
  58. /// <para>
  59. /// The password of the user you wish to register.
  60. /// </para>
  61. /// </summary>
  62. public string Password
  63. {
  64. get { return this._password; }
  65. set { this._password = value; }
  66. }
  67. // Check to see if Password property is set
  68. internal bool IsSetPassword()
  69. {
  70. return this._password != null;
  71. }
  72. /// <summary>
  73. /// Gets and sets the property SecretHash.
  74. /// <para>
  75. /// A keyed-hash message authentication code (HMAC) calculated using the secret key of
  76. /// a user pool client and username plus the client ID in the message.
  77. /// </para>
  78. /// </summary>
  79. public string SecretHash
  80. {
  81. get { return this._secretHash; }
  82. set { this._secretHash = value; }
  83. }
  84. // Check to see if SecretHash property is set
  85. internal bool IsSetSecretHash()
  86. {
  87. return this._secretHash != null;
  88. }
  89. /// <summary>
  90. /// Gets and sets the property UserAttributes.
  91. /// <para>
  92. /// An array of name-value pairs representing user attributes.
  93. /// </para>
  94. /// </summary>
  95. public List<AttributeType> UserAttributes
  96. {
  97. get { return this._userAttributes; }
  98. set { this._userAttributes = value; }
  99. }
  100. // Check to see if UserAttributes property is set
  101. internal bool IsSetUserAttributes()
  102. {
  103. return this._userAttributes != null && this._userAttributes.Count > 0;
  104. }
  105. /// <summary>
  106. /// Gets and sets the property Username.
  107. /// <para>
  108. /// The user name of the user you wish to register.
  109. /// </para>
  110. /// </summary>
  111. public string Username
  112. {
  113. get { return this._username; }
  114. set { this._username = value; }
  115. }
  116. // Check to see if Username property is set
  117. internal bool IsSetUsername()
  118. {
  119. return this._username != null;
  120. }
  121. /// <summary>
  122. /// Gets and sets the property ValidationData.
  123. /// <para>
  124. /// The validation data in the request to register a user.
  125. /// </para>
  126. /// </summary>
  127. public List<AttributeType> ValidationData
  128. {
  129. get { return this._validationData; }
  130. set { this._validationData = value; }
  131. }
  132. // Check to see if ValidationData property is set
  133. internal bool IsSetValidationData()
  134. {
  135. return this._validationData != null && this._validationData.Count > 0;
  136. }
  137. }
  138. }