PageRenderTime 43ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/aws-java-sdk-acm/src/main/java/com/amazonaws/services/certificatemanager/model/ResendValidationEmailRequest.java

https://gitlab.com/github-cloud-corp/aws-sdk-java
Java | 556 lines | 102 code | 27 blank | 427 comment | 36 complexity | 874e48723c68e452b53601a01a2fe216 MD5 | raw file
  1. /*
  2. * Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"). You may not
  5. * use this file except in compliance with the License. A copy of the License is
  6. * located at
  7. *
  8. * http://aws.amazon.com/apache2.0
  9. *
  10. * or in the "license" file accompanying this file. This file is distributed on
  11. * 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. package com.amazonaws.services.certificatemanager.model;
  16. import java.io.Serializable;
  17. import com.amazonaws.AmazonWebServiceRequest;
  18. /**
  19. *
  20. */
  21. public class ResendValidationEmailRequest extends AmazonWebServiceRequest
  22. implements Serializable, Cloneable {
  23. /**
  24. * <p>
  25. * String that contains the ARN of the requested certificate. The
  26. * certificate ARN is generated and returned by the
  27. * <a>RequestCertificate</a> action as soon as the request is made. By
  28. * default, using this parameter causes email to be sent to all top-level
  29. * domains you specified in the certificate request.
  30. * </p>
  31. * <p>
  32. * The ARN must be of the form:
  33. * </p>
  34. * <p>
  35. * <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
  36. * </p>
  37. */
  38. private String certificateArn;
  39. /**
  40. * <p>
  41. * The Fully Qualified Domain Name (FQDN) of the certificate that needs to
  42. * be validated.
  43. * </p>
  44. */
  45. private String domain;
  46. /**
  47. * <p>
  48. * The base validation domain that will act as the suffix of the email
  49. * addresses that are used to send the emails. This must be the same as the
  50. * <code>Domain</code> value or a superdomain of the <code>Domain</code>
  51. * value. For example, if you requested a certificate for
  52. * <code>site.subdomain.example.com</code> and specify a
  53. * <b>ValidationDomain</b> of <code>subdomain.example.com</code>, ACM sends
  54. * email to the domain registrant, technical contact, and administrative
  55. * contact in WHOIS and the following five addresses:
  56. * </p>
  57. * <ul>
  58. * <li>
  59. * <p>
  60. * admin@subdomain.example.com
  61. * </p>
  62. * </li>
  63. * <li>
  64. * <p>
  65. * administrator@subdomain.example.com
  66. * </p>
  67. * </li>
  68. * <li>
  69. * <p>
  70. * hostmaster@subdomain.example.com
  71. * </p>
  72. * </li>
  73. * <li>
  74. * <p>
  75. * postmaster@subdomain.example.com
  76. * </p>
  77. * </li>
  78. * <li>
  79. * <p>
  80. * webmaster@subdomain.example.com
  81. * </p>
  82. * </li>
  83. * </ul>
  84. */
  85. private String validationDomain;
  86. /**
  87. * <p>
  88. * String that contains the ARN of the requested certificate. The
  89. * certificate ARN is generated and returned by the
  90. * <a>RequestCertificate</a> action as soon as the request is made. By
  91. * default, using this parameter causes email to be sent to all top-level
  92. * domains you specified in the certificate request.
  93. * </p>
  94. * <p>
  95. * The ARN must be of the form:
  96. * </p>
  97. * <p>
  98. * <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
  99. * </p>
  100. *
  101. * @param certificateArn
  102. * String that contains the ARN of the requested certificate. The
  103. * certificate ARN is generated and returned by the
  104. * <a>RequestCertificate</a> action as soon as the request is made.
  105. * By default, using this parameter causes email to be sent to all
  106. * top-level domains you specified in the certificate request.</p>
  107. * <p>
  108. * The ARN must be of the form:
  109. * </p>
  110. * <p>
  111. * <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
  112. */
  113. public void setCertificateArn(String certificateArn) {
  114. this.certificateArn = certificateArn;
  115. }
  116. /**
  117. * <p>
  118. * String that contains the ARN of the requested certificate. The
  119. * certificate ARN is generated and returned by the
  120. * <a>RequestCertificate</a> action as soon as the request is made. By
  121. * default, using this parameter causes email to be sent to all top-level
  122. * domains you specified in the certificate request.
  123. * </p>
  124. * <p>
  125. * The ARN must be of the form:
  126. * </p>
  127. * <p>
  128. * <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
  129. * </p>
  130. *
  131. * @return String that contains the ARN of the requested certificate. The
  132. * certificate ARN is generated and returned by the
  133. * <a>RequestCertificate</a> action as soon as the request is made.
  134. * By default, using this parameter causes email to be sent to all
  135. * top-level domains you specified in the certificate request.</p>
  136. * <p>
  137. * The ARN must be of the form:
  138. * </p>
  139. * <p>
  140. * <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
  141. */
  142. public String getCertificateArn() {
  143. return this.certificateArn;
  144. }
  145. /**
  146. * <p>
  147. * String that contains the ARN of the requested certificate. The
  148. * certificate ARN is generated and returned by the
  149. * <a>RequestCertificate</a> action as soon as the request is made. By
  150. * default, using this parameter causes email to be sent to all top-level
  151. * domains you specified in the certificate request.
  152. * </p>
  153. * <p>
  154. * The ARN must be of the form:
  155. * </p>
  156. * <p>
  157. * <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
  158. * </p>
  159. *
  160. * @param certificateArn
  161. * String that contains the ARN of the requested certificate. The
  162. * certificate ARN is generated and returned by the
  163. * <a>RequestCertificate</a> action as soon as the request is made.
  164. * By default, using this parameter causes email to be sent to all
  165. * top-level domains you specified in the certificate request.</p>
  166. * <p>
  167. * The ARN must be of the form:
  168. * </p>
  169. * <p>
  170. * <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
  171. * @return Returns a reference to this object so that method calls can be
  172. * chained together.
  173. */
  174. public ResendValidationEmailRequest withCertificateArn(String certificateArn) {
  175. setCertificateArn(certificateArn);
  176. return this;
  177. }
  178. /**
  179. * <p>
  180. * The Fully Qualified Domain Name (FQDN) of the certificate that needs to
  181. * be validated.
  182. * </p>
  183. *
  184. * @param domain
  185. * The Fully Qualified Domain Name (FQDN) of the certificate that
  186. * needs to be validated.
  187. */
  188. public void setDomain(String domain) {
  189. this.domain = domain;
  190. }
  191. /**
  192. * <p>
  193. * The Fully Qualified Domain Name (FQDN) of the certificate that needs to
  194. * be validated.
  195. * </p>
  196. *
  197. * @return The Fully Qualified Domain Name (FQDN) of the certificate that
  198. * needs to be validated.
  199. */
  200. public String getDomain() {
  201. return this.domain;
  202. }
  203. /**
  204. * <p>
  205. * The Fully Qualified Domain Name (FQDN) of the certificate that needs to
  206. * be validated.
  207. * </p>
  208. *
  209. * @param domain
  210. * The Fully Qualified Domain Name (FQDN) of the certificate that
  211. * needs to be validated.
  212. * @return Returns a reference to this object so that method calls can be
  213. * chained together.
  214. */
  215. public ResendValidationEmailRequest withDomain(String domain) {
  216. setDomain(domain);
  217. return this;
  218. }
  219. /**
  220. * <p>
  221. * The base validation domain that will act as the suffix of the email
  222. * addresses that are used to send the emails. This must be the same as the
  223. * <code>Domain</code> value or a superdomain of the <code>Domain</code>
  224. * value. For example, if you requested a certificate for
  225. * <code>site.subdomain.example.com</code> and specify a
  226. * <b>ValidationDomain</b> of <code>subdomain.example.com</code>, ACM sends
  227. * email to the domain registrant, technical contact, and administrative
  228. * contact in WHOIS and the following five addresses:
  229. * </p>
  230. * <ul>
  231. * <li>
  232. * <p>
  233. * admin@subdomain.example.com
  234. * </p>
  235. * </li>
  236. * <li>
  237. * <p>
  238. * administrator@subdomain.example.com
  239. * </p>
  240. * </li>
  241. * <li>
  242. * <p>
  243. * hostmaster@subdomain.example.com
  244. * </p>
  245. * </li>
  246. * <li>
  247. * <p>
  248. * postmaster@subdomain.example.com
  249. * </p>
  250. * </li>
  251. * <li>
  252. * <p>
  253. * webmaster@subdomain.example.com
  254. * </p>
  255. * </li>
  256. * </ul>
  257. *
  258. * @param validationDomain
  259. * The base validation domain that will act as the suffix of the
  260. * email addresses that are used to send the emails. This must be the
  261. * same as the <code>Domain</code> value or a superdomain of the
  262. * <code>Domain</code> value. For example, if you requested a
  263. * certificate for <code>site.subdomain.example.com</code> and
  264. * specify a <b>ValidationDomain</b> of
  265. * <code>subdomain.example.com</code>, ACM sends email to the domain
  266. * registrant, technical contact, and administrative contact in WHOIS
  267. * and the following five addresses:</p>
  268. * <ul>
  269. * <li>
  270. * <p>
  271. * admin@subdomain.example.com
  272. * </p>
  273. * </li>
  274. * <li>
  275. * <p>
  276. * administrator@subdomain.example.com
  277. * </p>
  278. * </li>
  279. * <li>
  280. * <p>
  281. * hostmaster@subdomain.example.com
  282. * </p>
  283. * </li>
  284. * <li>
  285. * <p>
  286. * postmaster@subdomain.example.com
  287. * </p>
  288. * </li>
  289. * <li>
  290. * <p>
  291. * webmaster@subdomain.example.com
  292. * </p>
  293. * </li>
  294. */
  295. public void setValidationDomain(String validationDomain) {
  296. this.validationDomain = validationDomain;
  297. }
  298. /**
  299. * <p>
  300. * The base validation domain that will act as the suffix of the email
  301. * addresses that are used to send the emails. This must be the same as the
  302. * <code>Domain</code> value or a superdomain of the <code>Domain</code>
  303. * value. For example, if you requested a certificate for
  304. * <code>site.subdomain.example.com</code> and specify a
  305. * <b>ValidationDomain</b> of <code>subdomain.example.com</code>, ACM sends
  306. * email to the domain registrant, technical contact, and administrative
  307. * contact in WHOIS and the following five addresses:
  308. * </p>
  309. * <ul>
  310. * <li>
  311. * <p>
  312. * admin@subdomain.example.com
  313. * </p>
  314. * </li>
  315. * <li>
  316. * <p>
  317. * administrator@subdomain.example.com
  318. * </p>
  319. * </li>
  320. * <li>
  321. * <p>
  322. * hostmaster@subdomain.example.com
  323. * </p>
  324. * </li>
  325. * <li>
  326. * <p>
  327. * postmaster@subdomain.example.com
  328. * </p>
  329. * </li>
  330. * <li>
  331. * <p>
  332. * webmaster@subdomain.example.com
  333. * </p>
  334. * </li>
  335. * </ul>
  336. *
  337. * @return The base validation domain that will act as the suffix of the
  338. * email addresses that are used to send the emails. This must be
  339. * the same as the <code>Domain</code> value or a superdomain of the
  340. * <code>Domain</code> value. For example, if you requested a
  341. * certificate for <code>site.subdomain.example.com</code> and
  342. * specify a <b>ValidationDomain</b> of
  343. * <code>subdomain.example.com</code>, ACM sends email to the domain
  344. * registrant, technical contact, and administrative contact in
  345. * WHOIS and the following five addresses:</p>
  346. * <ul>
  347. * <li>
  348. * <p>
  349. * admin@subdomain.example.com
  350. * </p>
  351. * </li>
  352. * <li>
  353. * <p>
  354. * administrator@subdomain.example.com
  355. * </p>
  356. * </li>
  357. * <li>
  358. * <p>
  359. * hostmaster@subdomain.example.com
  360. * </p>
  361. * </li>
  362. * <li>
  363. * <p>
  364. * postmaster@subdomain.example.com
  365. * </p>
  366. * </li>
  367. * <li>
  368. * <p>
  369. * webmaster@subdomain.example.com
  370. * </p>
  371. * </li>
  372. */
  373. public String getValidationDomain() {
  374. return this.validationDomain;
  375. }
  376. /**
  377. * <p>
  378. * The base validation domain that will act as the suffix of the email
  379. * addresses that are used to send the emails. This must be the same as the
  380. * <code>Domain</code> value or a superdomain of the <code>Domain</code>
  381. * value. For example, if you requested a certificate for
  382. * <code>site.subdomain.example.com</code> and specify a
  383. * <b>ValidationDomain</b> of <code>subdomain.example.com</code>, ACM sends
  384. * email to the domain registrant, technical contact, and administrative
  385. * contact in WHOIS and the following five addresses:
  386. * </p>
  387. * <ul>
  388. * <li>
  389. * <p>
  390. * admin@subdomain.example.com
  391. * </p>
  392. * </li>
  393. * <li>
  394. * <p>
  395. * administrator@subdomain.example.com
  396. * </p>
  397. * </li>
  398. * <li>
  399. * <p>
  400. * hostmaster@subdomain.example.com
  401. * </p>
  402. * </li>
  403. * <li>
  404. * <p>
  405. * postmaster@subdomain.example.com
  406. * </p>
  407. * </li>
  408. * <li>
  409. * <p>
  410. * webmaster@subdomain.example.com
  411. * </p>
  412. * </li>
  413. * </ul>
  414. *
  415. * @param validationDomain
  416. * The base validation domain that will act as the suffix of the
  417. * email addresses that are used to send the emails. This must be the
  418. * same as the <code>Domain</code> value or a superdomain of the
  419. * <code>Domain</code> value. For example, if you requested a
  420. * certificate for <code>site.subdomain.example.com</code> and
  421. * specify a <b>ValidationDomain</b> of
  422. * <code>subdomain.example.com</code>, ACM sends email to the domain
  423. * registrant, technical contact, and administrative contact in WHOIS
  424. * and the following five addresses:</p>
  425. * <ul>
  426. * <li>
  427. * <p>
  428. * admin@subdomain.example.com
  429. * </p>
  430. * </li>
  431. * <li>
  432. * <p>
  433. * administrator@subdomain.example.com
  434. * </p>
  435. * </li>
  436. * <li>
  437. * <p>
  438. * hostmaster@subdomain.example.com
  439. * </p>
  440. * </li>
  441. * <li>
  442. * <p>
  443. * postmaster@subdomain.example.com
  444. * </p>
  445. * </li>
  446. * <li>
  447. * <p>
  448. * webmaster@subdomain.example.com
  449. * </p>
  450. * </li>
  451. * @return Returns a reference to this object so that method calls can be
  452. * chained together.
  453. */
  454. public ResendValidationEmailRequest withValidationDomain(
  455. String validationDomain) {
  456. setValidationDomain(validationDomain);
  457. return this;
  458. }
  459. /**
  460. * Returns a string representation of this object; useful for testing and
  461. * debugging.
  462. *
  463. * @return A string representation of this object.
  464. *
  465. * @see java.lang.Object#toString()
  466. */
  467. @Override
  468. public String toString() {
  469. StringBuilder sb = new StringBuilder();
  470. sb.append("{");
  471. if (getCertificateArn() != null)
  472. sb.append("CertificateArn: " + getCertificateArn() + ",");
  473. if (getDomain() != null)
  474. sb.append("Domain: " + getDomain() + ",");
  475. if (getValidationDomain() != null)
  476. sb.append("ValidationDomain: " + getValidationDomain());
  477. sb.append("}");
  478. return sb.toString();
  479. }
  480. @Override
  481. public boolean equals(Object obj) {
  482. if (this == obj)
  483. return true;
  484. if (obj == null)
  485. return false;
  486. if (obj instanceof ResendValidationEmailRequest == false)
  487. return false;
  488. ResendValidationEmailRequest other = (ResendValidationEmailRequest) obj;
  489. if (other.getCertificateArn() == null
  490. ^ this.getCertificateArn() == null)
  491. return false;
  492. if (other.getCertificateArn() != null
  493. && other.getCertificateArn().equals(this.getCertificateArn()) == false)
  494. return false;
  495. if (other.getDomain() == null ^ this.getDomain() == null)
  496. return false;
  497. if (other.getDomain() != null
  498. && other.getDomain().equals(this.getDomain()) == false)
  499. return false;
  500. if (other.getValidationDomain() == null
  501. ^ this.getValidationDomain() == null)
  502. return false;
  503. if (other.getValidationDomain() != null
  504. && other.getValidationDomain().equals(
  505. this.getValidationDomain()) == false)
  506. return false;
  507. return true;
  508. }
  509. @Override
  510. public int hashCode() {
  511. final int prime = 31;
  512. int hashCode = 1;
  513. hashCode = prime
  514. * hashCode
  515. + ((getCertificateArn() == null) ? 0 : getCertificateArn()
  516. .hashCode());
  517. hashCode = prime * hashCode
  518. + ((getDomain() == null) ? 0 : getDomain().hashCode());
  519. hashCode = prime
  520. * hashCode
  521. + ((getValidationDomain() == null) ? 0 : getValidationDomain()
  522. .hashCode());
  523. return hashCode;
  524. }
  525. @Override
  526. public ResendValidationEmailRequest clone() {
  527. return (ResendValidationEmailRequest) super.clone();
  528. }
  529. }