/src/main/java/com/tencentcloudapi/mongodb/v20190725/models/ResetDBInstancePasswordRequest.java

https://github.com/TencentCloud/tencentcloud-sdk-java · Java · 104 lines · 39 code · 14 blank · 51 comment · 0 complexity · f02459521910d778295378d946d261e6 MD5 · raw file

  1. /*
  2. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.tencentcloudapi.mongodb.v20190725.models;
  17. import com.tencentcloudapi.common.AbstractModel;
  18. import com.google.gson.annotations.SerializedName;
  19. import com.google.gson.annotations.Expose;
  20. import java.util.HashMap;
  21. public class ResetDBInstancePasswordRequest extends AbstractModel{
  22. /**
  23. * 实例Id
  24. */
  25. @SerializedName("InstanceId")
  26. @Expose
  27. private String InstanceId;
  28. /**
  29. * 实例账号名
  30. */
  31. @SerializedName("UserName")
  32. @Expose
  33. private String UserName;
  34. /**
  35. * 新密码
  36. */
  37. @SerializedName("Password")
  38. @Expose
  39. private String Password;
  40. /**
  41. * Get 实例Id
  42. * @return InstanceId 实例Id
  43. */
  44. public String getInstanceId() {
  45. return this.InstanceId;
  46. }
  47. /**
  48. * Set 实例Id
  49. * @param InstanceId 实例Id
  50. */
  51. public void setInstanceId(String InstanceId) {
  52. this.InstanceId = InstanceId;
  53. }
  54. /**
  55. * Get 实例账号名
  56. * @return UserName 实例账号名
  57. */
  58. public String getUserName() {
  59. return this.UserName;
  60. }
  61. /**
  62. * Set 实例账号名
  63. * @param UserName 实例账号名
  64. */
  65. public void setUserName(String UserName) {
  66. this.UserName = UserName;
  67. }
  68. /**
  69. * Get 新密码
  70. * @return Password 新密码
  71. */
  72. public String getPassword() {
  73. return this.Password;
  74. }
  75. /**
  76. * Set 新密码
  77. * @param Password 新密码
  78. */
  79. public void setPassword(String Password) {
  80. this.Password = Password;
  81. }
  82. /**
  83. * Internal implementation, normal users should not use it.
  84. */
  85. public void toMap(HashMap<String, String> map, String prefix) {
  86. this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
  87. this.setParamSimple(map, prefix + "UserName", this.UserName);
  88. this.setParamSimple(map, prefix + "Password", this.Password);
  89. }
  90. }