/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserInvitationRequestResource.java

http://github.com/WindowsAzure/azure-sdk-for-java · Java · 163 lines · 74 code · 16 blank · 73 comment · 17 complexity · ead1a58fcea0d4e70980e56c22569beb MD5 · raw file

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. // Code generated by Microsoft (R) AutoRest Code Generator.
  4. package com.azure.resourcemanager.appservice.models;
  5. import com.azure.core.annotation.Fluent;
  6. import com.azure.resourcemanager.appservice.fluent.models.StaticSiteUserInvitationRequestResourceProperties;
  7. import com.fasterxml.jackson.annotation.JsonProperty;
  8. /** Static sites user roles invitation resource. */
  9. @Fluent
  10. public final class StaticSiteUserInvitationRequestResource extends ProxyOnlyResource {
  11. /*
  12. * StaticSiteUserInvitationRequestResource resource specific properties
  13. */
  14. @JsonProperty(value = "properties")
  15. private StaticSiteUserInvitationRequestResourceProperties innerProperties;
  16. /**
  17. * Get the innerProperties property: StaticSiteUserInvitationRequestResource resource specific properties.
  18. *
  19. * @return the innerProperties value.
  20. */
  21. private StaticSiteUserInvitationRequestResourceProperties innerProperties() {
  22. return this.innerProperties;
  23. }
  24. /** {@inheritDoc} */
  25. @Override
  26. public StaticSiteUserInvitationRequestResource withKind(String kind) {
  27. super.withKind(kind);
  28. return this;
  29. }
  30. /**
  31. * Get the domain property: The domain name for the static site custom domain.
  32. *
  33. * @return the domain value.
  34. */
  35. public String domain() {
  36. return this.innerProperties() == null ? null : this.innerProperties().domain();
  37. }
  38. /**
  39. * Set the domain property: The domain name for the static site custom domain.
  40. *
  41. * @param domain the domain value to set.
  42. * @return the StaticSiteUserInvitationRequestResource object itself.
  43. */
  44. public StaticSiteUserInvitationRequestResource withDomain(String domain) {
  45. if (this.innerProperties() == null) {
  46. this.innerProperties = new StaticSiteUserInvitationRequestResourceProperties();
  47. }
  48. this.innerProperties().withDomain(domain);
  49. return this;
  50. }
  51. /**
  52. * Get the provider property: The identity provider for the static site user.
  53. *
  54. * @return the provider value.
  55. */
  56. public String provider() {
  57. return this.innerProperties() == null ? null : this.innerProperties().provider();
  58. }
  59. /**
  60. * Set the provider property: The identity provider for the static site user.
  61. *
  62. * @param provider the provider value to set.
  63. * @return the StaticSiteUserInvitationRequestResource object itself.
  64. */
  65. public StaticSiteUserInvitationRequestResource withProvider(String provider) {
  66. if (this.innerProperties() == null) {
  67. this.innerProperties = new StaticSiteUserInvitationRequestResourceProperties();
  68. }
  69. this.innerProperties().withProvider(provider);
  70. return this;
  71. }
  72. /**
  73. * Get the userDetails property: The user id for the static site user.
  74. *
  75. * @return the userDetails value.
  76. */
  77. public String userDetails() {
  78. return this.innerProperties() == null ? null : this.innerProperties().userDetails();
  79. }
  80. /**
  81. * Set the userDetails property: The user id for the static site user.
  82. *
  83. * @param userDetails the userDetails value to set.
  84. * @return the StaticSiteUserInvitationRequestResource object itself.
  85. */
  86. public StaticSiteUserInvitationRequestResource withUserDetails(String userDetails) {
  87. if (this.innerProperties() == null) {
  88. this.innerProperties = new StaticSiteUserInvitationRequestResourceProperties();
  89. }
  90. this.innerProperties().withUserDetails(userDetails);
  91. return this;
  92. }
  93. /**
  94. * Get the roles property: The roles for the static site user, in free-form string format.
  95. *
  96. * @return the roles value.
  97. */
  98. public String roles() {
  99. return this.innerProperties() == null ? null : this.innerProperties().roles();
  100. }
  101. /**
  102. * Set the roles property: The roles for the static site user, in free-form string format.
  103. *
  104. * @param roles the roles value to set.
  105. * @return the StaticSiteUserInvitationRequestResource object itself.
  106. */
  107. public StaticSiteUserInvitationRequestResource withRoles(String roles) {
  108. if (this.innerProperties() == null) {
  109. this.innerProperties = new StaticSiteUserInvitationRequestResourceProperties();
  110. }
  111. this.innerProperties().withRoles(roles);
  112. return this;
  113. }
  114. /**
  115. * Get the numHoursToExpiration property: The number of hours the sas token stays valid.
  116. *
  117. * @return the numHoursToExpiration value.
  118. */
  119. public Integer numHoursToExpiration() {
  120. return this.innerProperties() == null ? null : this.innerProperties().numHoursToExpiration();
  121. }
  122. /**
  123. * Set the numHoursToExpiration property: The number of hours the sas token stays valid.
  124. *
  125. * @param numHoursToExpiration the numHoursToExpiration value to set.
  126. * @return the StaticSiteUserInvitationRequestResource object itself.
  127. */
  128. public StaticSiteUserInvitationRequestResource withNumHoursToExpiration(Integer numHoursToExpiration) {
  129. if (this.innerProperties() == null) {
  130. this.innerProperties = new StaticSiteUserInvitationRequestResourceProperties();
  131. }
  132. this.innerProperties().withNumHoursToExpiration(numHoursToExpiration);
  133. return this;
  134. }
  135. /**
  136. * Validates the instance.
  137. *
  138. * @throws IllegalArgumentException thrown if the instance is not valid.
  139. */
  140. @Override
  141. public void validate() {
  142. super.validate();
  143. if (innerProperties() != null) {
  144. innerProperties().validate();
  145. }
  146. }
  147. }