1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The GetDomainDetail response includes the following elements.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetDomainDetailOutput {
/// <p>The name of a domain.</p>
pub domain_name: ::std::option::Option<::std::string::String>,
/// <p>The name servers of the domain.</p>
pub nameservers: ::std::option::Option<::std::vec::Vec<crate::types::Nameserver>>,
/// <p>Specifies whether the domain registration is set to renew automatically.</p>
pub auto_renew: ::std::option::Option<bool>,
/// <p>Provides details about the domain administrative contact.</p>
pub admin_contact: ::std::option::Option<crate::types::ContactDetail>,
/// <p>Provides details about the domain registrant.</p>
pub registrant_contact: ::std::option::Option<crate::types::ContactDetail>,
/// <p>Provides details about the domain technical contact.</p>
pub tech_contact: ::std::option::Option<crate::types::ContactDetail>,
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p>
pub admin_privacy: ::std::option::Option<bool>,
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p>
pub registrant_privacy: ::std::option::Option<bool>,
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p>
pub tech_privacy: ::std::option::Option<bool>,
/// <p>Name of the registrar of the domain as identified in the registry.</p>
pub registrar_name: ::std::option::Option<::std::string::String>,
/// <p>The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.</p>
pub who_is_server: ::std::option::Option<::std::string::String>,
/// <p>Web address of the registrar.</p>
pub registrar_url: ::std::option::Option<::std::string::String>,
/// <p>Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.</p>
pub abuse_contact_email: ::std::option::Option<::std::string::String>,
/// <p>Phone number for reporting abuse.</p>
pub abuse_contact_phone: ::std::option::Option<::std::string::String>,
/// <p>Reserved for future use.</p>
pub registry_domain_id: ::std::option::Option<::std::string::String>,
/// <p>The date when the domain was created as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The last updated date of the domain as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub updated_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The date when the registration for the domain is set to expire. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub expiration_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Reseller of the domain. Domains registered or transferred using Route 53 domains will have <code>"Amazon"</code> as the reseller.</p>
pub reseller: ::std::option::Option<::std::string::String>,
/// <p>Deprecated.</p>
pub dns_sec: ::std::option::Option<::std::string::String>,
/// <p>An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.</p>
/// <p>ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.</p>
/// <p>For a current list of domain name status codes and an explanation of what each code means, go to the <a href="https://www.icann.org/">ICANN website</a> and search for <code>epp status codes</code>. (Search on the ICANN website; web searches sometimes return an old version of the document.)</p>
pub status_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>A complex type that contains information about the DNSSEC configuration.</p>
pub dnssec_keys: ::std::option::Option<::std::vec::Vec<crate::types::DnssecKey>>,
/// <p>Provides details about the domain billing contact.</p>
pub billing_contact: ::std::option::Option<crate::types::ContactDetail>,
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the billing contact.</p>
pub billing_privacy: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl GetDomainDetailOutput {
/// <p>The name of a domain.</p>
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
/// <p>The name servers of the domain.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.nameservers.is_none()`.
pub fn nameservers(&self) -> &[crate::types::Nameserver] {
self.nameservers.as_deref().unwrap_or_default()
}
/// <p>Specifies whether the domain registration is set to renew automatically.</p>
pub fn auto_renew(&self) -> ::std::option::Option<bool> {
self.auto_renew
}
/// <p>Provides details about the domain administrative contact.</p>
pub fn admin_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> {
self.admin_contact.as_ref()
}
/// <p>Provides details about the domain registrant.</p>
pub fn registrant_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> {
self.registrant_contact.as_ref()
}
/// <p>Provides details about the domain technical contact.</p>
pub fn tech_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> {
self.tech_contact.as_ref()
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p>
pub fn admin_privacy(&self) -> ::std::option::Option<bool> {
self.admin_privacy
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p>
pub fn registrant_privacy(&self) -> ::std::option::Option<bool> {
self.registrant_privacy
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p>
pub fn tech_privacy(&self) -> ::std::option::Option<bool> {
self.tech_privacy
}
/// <p>Name of the registrar of the domain as identified in the registry.</p>
pub fn registrar_name(&self) -> ::std::option::Option<&str> {
self.registrar_name.as_deref()
}
/// <p>The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.</p>
pub fn who_is_server(&self) -> ::std::option::Option<&str> {
self.who_is_server.as_deref()
}
/// <p>Web address of the registrar.</p>
pub fn registrar_url(&self) -> ::std::option::Option<&str> {
self.registrar_url.as_deref()
}
/// <p>Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.</p>
pub fn abuse_contact_email(&self) -> ::std::option::Option<&str> {
self.abuse_contact_email.as_deref()
}
/// <p>Phone number for reporting abuse.</p>
pub fn abuse_contact_phone(&self) -> ::std::option::Option<&str> {
self.abuse_contact_phone.as_deref()
}
/// <p>Reserved for future use.</p>
pub fn registry_domain_id(&self) -> ::std::option::Option<&str> {
self.registry_domain_id.as_deref()
}
/// <p>The date when the domain was created as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
/// <p>The last updated date of the domain as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn updated_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_date.as_ref()
}
/// <p>The date when the registration for the domain is set to expire. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn expiration_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.expiration_date.as_ref()
}
/// <p>Reseller of the domain. Domains registered or transferred using Route 53 domains will have <code>"Amazon"</code> as the reseller.</p>
pub fn reseller(&self) -> ::std::option::Option<&str> {
self.reseller.as_deref()
}
/// <p>Deprecated.</p>
pub fn dns_sec(&self) -> ::std::option::Option<&str> {
self.dns_sec.as_deref()
}
/// <p>An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.</p>
/// <p>ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.</p>
/// <p>For a current list of domain name status codes and an explanation of what each code means, go to the <a href="https://www.icann.org/">ICANN website</a> and search for <code>epp status codes</code>. (Search on the ICANN website; web searches sometimes return an old version of the document.)</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.status_list.is_none()`.
pub fn status_list(&self) -> &[::std::string::String] {
self.status_list.as_deref().unwrap_or_default()
}
/// <p>A complex type that contains information about the DNSSEC configuration.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.dnssec_keys.is_none()`.
pub fn dnssec_keys(&self) -> &[crate::types::DnssecKey] {
self.dnssec_keys.as_deref().unwrap_or_default()
}
/// <p>Provides details about the domain billing contact.</p>
pub fn billing_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> {
self.billing_contact.as_ref()
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the billing contact.</p>
pub fn billing_privacy(&self) -> ::std::option::Option<bool> {
self.billing_privacy
}
}
impl ::std::fmt::Debug for GetDomainDetailOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetDomainDetailOutput");
formatter.field("domain_name", &self.domain_name);
formatter.field("nameservers", &self.nameservers);
formatter.field("auto_renew", &self.auto_renew);
formatter.field("admin_contact", &"*** Sensitive Data Redacted ***");
formatter.field("registrant_contact", &"*** Sensitive Data Redacted ***");
formatter.field("tech_contact", &"*** Sensitive Data Redacted ***");
formatter.field("admin_privacy", &self.admin_privacy);
formatter.field("registrant_privacy", &self.registrant_privacy);
formatter.field("tech_privacy", &self.tech_privacy);
formatter.field("registrar_name", &self.registrar_name);
formatter.field("who_is_server", &self.who_is_server);
formatter.field("registrar_url", &self.registrar_url);
formatter.field("abuse_contact_email", &"*** Sensitive Data Redacted ***");
formatter.field("abuse_contact_phone", &"*** Sensitive Data Redacted ***");
formatter.field("registry_domain_id", &self.registry_domain_id);
formatter.field("creation_date", &self.creation_date);
formatter.field("updated_date", &self.updated_date);
formatter.field("expiration_date", &self.expiration_date);
formatter.field("reseller", &self.reseller);
formatter.field("dns_sec", &self.dns_sec);
formatter.field("status_list", &self.status_list);
formatter.field("dnssec_keys", &self.dnssec_keys);
formatter.field("billing_contact", &"*** Sensitive Data Redacted ***");
formatter.field("billing_privacy", &self.billing_privacy);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl ::aws_types::request_id::RequestId for GetDomainDetailOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetDomainDetailOutput {
/// Creates a new builder-style object to manufacture [`GetDomainDetailOutput`](crate::operation::get_domain_detail::GetDomainDetailOutput).
pub fn builder() -> crate::operation::get_domain_detail::builders::GetDomainDetailOutputBuilder {
crate::operation::get_domain_detail::builders::GetDomainDetailOutputBuilder::default()
}
}
/// A builder for [`GetDomainDetailOutput`](crate::operation::get_domain_detail::GetDomainDetailOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct GetDomainDetailOutputBuilder {
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) nameservers: ::std::option::Option<::std::vec::Vec<crate::types::Nameserver>>,
pub(crate) auto_renew: ::std::option::Option<bool>,
pub(crate) admin_contact: ::std::option::Option<crate::types::ContactDetail>,
pub(crate) registrant_contact: ::std::option::Option<crate::types::ContactDetail>,
pub(crate) tech_contact: ::std::option::Option<crate::types::ContactDetail>,
pub(crate) admin_privacy: ::std::option::Option<bool>,
pub(crate) registrant_privacy: ::std::option::Option<bool>,
pub(crate) tech_privacy: ::std::option::Option<bool>,
pub(crate) registrar_name: ::std::option::Option<::std::string::String>,
pub(crate) who_is_server: ::std::option::Option<::std::string::String>,
pub(crate) registrar_url: ::std::option::Option<::std::string::String>,
pub(crate) abuse_contact_email: ::std::option::Option<::std::string::String>,
pub(crate) abuse_contact_phone: ::std::option::Option<::std::string::String>,
pub(crate) registry_domain_id: ::std::option::Option<::std::string::String>,
pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) updated_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) expiration_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) reseller: ::std::option::Option<::std::string::String>,
pub(crate) dns_sec: ::std::option::Option<::std::string::String>,
pub(crate) status_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) dnssec_keys: ::std::option::Option<::std::vec::Vec<crate::types::DnssecKey>>,
pub(crate) billing_contact: ::std::option::Option<crate::types::ContactDetail>,
pub(crate) billing_privacy: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl GetDomainDetailOutputBuilder {
/// <p>The name of a domain.</p>
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of a domain.</p>
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_name = input;
self
}
/// <p>The name of a domain.</p>
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_name
}
/// Appends an item to `nameservers`.
///
/// To override the contents of this collection use [`set_nameservers`](Self::set_nameservers).
///
/// <p>The name servers of the domain.</p>
pub fn nameservers(mut self, input: crate::types::Nameserver) -> Self {
let mut v = self.nameservers.unwrap_or_default();
v.push(input);
self.nameservers = ::std::option::Option::Some(v);
self
}
/// <p>The name servers of the domain.</p>
pub fn set_nameservers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Nameserver>>) -> Self {
self.nameservers = input;
self
}
/// <p>The name servers of the domain.</p>
pub fn get_nameservers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Nameserver>> {
&self.nameservers
}
/// <p>Specifies whether the domain registration is set to renew automatically.</p>
pub fn auto_renew(mut self, input: bool) -> Self {
self.auto_renew = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the domain registration is set to renew automatically.</p>
pub fn set_auto_renew(mut self, input: ::std::option::Option<bool>) -> Self {
self.auto_renew = input;
self
}
/// <p>Specifies whether the domain registration is set to renew automatically.</p>
pub fn get_auto_renew(&self) -> &::std::option::Option<bool> {
&self.auto_renew
}
/// <p>Provides details about the domain administrative contact.</p>
pub fn admin_contact(mut self, input: crate::types::ContactDetail) -> Self {
self.admin_contact = ::std::option::Option::Some(input);
self
}
/// <p>Provides details about the domain administrative contact.</p>
pub fn set_admin_contact(mut self, input: ::std::option::Option<crate::types::ContactDetail>) -> Self {
self.admin_contact = input;
self
}
/// <p>Provides details about the domain administrative contact.</p>
pub fn get_admin_contact(&self) -> &::std::option::Option<crate::types::ContactDetail> {
&self.admin_contact
}
/// <p>Provides details about the domain registrant.</p>
pub fn registrant_contact(mut self, input: crate::types::ContactDetail) -> Self {
self.registrant_contact = ::std::option::Option::Some(input);
self
}
/// <p>Provides details about the domain registrant.</p>
pub fn set_registrant_contact(mut self, input: ::std::option::Option<crate::types::ContactDetail>) -> Self {
self.registrant_contact = input;
self
}
/// <p>Provides details about the domain registrant.</p>
pub fn get_registrant_contact(&self) -> &::std::option::Option<crate::types::ContactDetail> {
&self.registrant_contact
}
/// <p>Provides details about the domain technical contact.</p>
pub fn tech_contact(mut self, input: crate::types::ContactDetail) -> Self {
self.tech_contact = ::std::option::Option::Some(input);
self
}
/// <p>Provides details about the domain technical contact.</p>
pub fn set_tech_contact(mut self, input: ::std::option::Option<crate::types::ContactDetail>) -> Self {
self.tech_contact = input;
self
}
/// <p>Provides details about the domain technical contact.</p>
pub fn get_tech_contact(&self) -> &::std::option::Option<crate::types::ContactDetail> {
&self.tech_contact
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p>
pub fn admin_privacy(mut self, input: bool) -> Self {
self.admin_privacy = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p>
pub fn set_admin_privacy(mut self, input: ::std::option::Option<bool>) -> Self {
self.admin_privacy = input;
self
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p>
pub fn get_admin_privacy(&self) -> &::std::option::Option<bool> {
&self.admin_privacy
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p>
pub fn registrant_privacy(mut self, input: bool) -> Self {
self.registrant_privacy = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p>
pub fn set_registrant_privacy(mut self, input: ::std::option::Option<bool>) -> Self {
self.registrant_privacy = input;
self
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p>
pub fn get_registrant_privacy(&self) -> &::std::option::Option<bool> {
&self.registrant_privacy
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p>
pub fn tech_privacy(mut self, input: bool) -> Self {
self.tech_privacy = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p>
pub fn set_tech_privacy(mut self, input: ::std::option::Option<bool>) -> Self {
self.tech_privacy = input;
self
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p>
pub fn get_tech_privacy(&self) -> &::std::option::Option<bool> {
&self.tech_privacy
}
/// <p>Name of the registrar of the domain as identified in the registry.</p>
pub fn registrar_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.registrar_name = ::std::option::Option::Some(input.into());
self
}
/// <p>Name of the registrar of the domain as identified in the registry.</p>
pub fn set_registrar_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.registrar_name = input;
self
}
/// <p>Name of the registrar of the domain as identified in the registry.</p>
pub fn get_registrar_name(&self) -> &::std::option::Option<::std::string::String> {
&self.registrar_name
}
/// <p>The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.</p>
pub fn who_is_server(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.who_is_server = ::std::option::Option::Some(input.into());
self
}
/// <p>The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.</p>
pub fn set_who_is_server(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.who_is_server = input;
self
}
/// <p>The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.</p>
pub fn get_who_is_server(&self) -> &::std::option::Option<::std::string::String> {
&self.who_is_server
}
/// <p>Web address of the registrar.</p>
pub fn registrar_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.registrar_url = ::std::option::Option::Some(input.into());
self
}
/// <p>Web address of the registrar.</p>
pub fn set_registrar_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.registrar_url = input;
self
}
/// <p>Web address of the registrar.</p>
pub fn get_registrar_url(&self) -> &::std::option::Option<::std::string::String> {
&self.registrar_url
}
/// <p>Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.</p>
pub fn abuse_contact_email(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.abuse_contact_email = ::std::option::Option::Some(input.into());
self
}
/// <p>Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.</p>
pub fn set_abuse_contact_email(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.abuse_contact_email = input;
self
}
/// <p>Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.</p>
pub fn get_abuse_contact_email(&self) -> &::std::option::Option<::std::string::String> {
&self.abuse_contact_email
}
/// <p>Phone number for reporting abuse.</p>
pub fn abuse_contact_phone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.abuse_contact_phone = ::std::option::Option::Some(input.into());
self
}
/// <p>Phone number for reporting abuse.</p>
pub fn set_abuse_contact_phone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.abuse_contact_phone = input;
self
}
/// <p>Phone number for reporting abuse.</p>
pub fn get_abuse_contact_phone(&self) -> &::std::option::Option<::std::string::String> {
&self.abuse_contact_phone
}
/// <p>Reserved for future use.</p>
pub fn registry_domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.registry_domain_id = ::std::option::Option::Some(input.into());
self
}
/// <p>Reserved for future use.</p>
pub fn set_registry_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.registry_domain_id = input;
self
}
/// <p>Reserved for future use.</p>
pub fn get_registry_domain_id(&self) -> &::std::option::Option<::std::string::String> {
&self.registry_domain_id
}
/// <p>The date when the domain was created as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_date = ::std::option::Option::Some(input);
self
}
/// <p>The date when the domain was created as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_date = input;
self
}
/// <p>The date when the domain was created as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_date
}
/// <p>The last updated date of the domain as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn updated_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_date = ::std::option::Option::Some(input);
self
}
/// <p>The last updated date of the domain as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn set_updated_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_date = input;
self
}
/// <p>The last updated date of the domain as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn get_updated_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_date
}
/// <p>The date when the registration for the domain is set to expire. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn expiration_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.expiration_date = ::std::option::Option::Some(input);
self
}
/// <p>The date when the registration for the domain is set to expire. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn set_expiration_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.expiration_date = input;
self
}
/// <p>The date when the registration for the domain is set to expire. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
pub fn get_expiration_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.expiration_date
}
/// <p>Reseller of the domain. Domains registered or transferred using Route 53 domains will have <code>"Amazon"</code> as the reseller.</p>
pub fn reseller(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.reseller = ::std::option::Option::Some(input.into());
self
}
/// <p>Reseller of the domain. Domains registered or transferred using Route 53 domains will have <code>"Amazon"</code> as the reseller.</p>
pub fn set_reseller(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.reseller = input;
self
}
/// <p>Reseller of the domain. Domains registered or transferred using Route 53 domains will have <code>"Amazon"</code> as the reseller.</p>
pub fn get_reseller(&self) -> &::std::option::Option<::std::string::String> {
&self.reseller
}
/// <p>Deprecated.</p>
pub fn dns_sec(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.dns_sec = ::std::option::Option::Some(input.into());
self
}
/// <p>Deprecated.</p>
pub fn set_dns_sec(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.dns_sec = input;
self
}
/// <p>Deprecated.</p>
pub fn get_dns_sec(&self) -> &::std::option::Option<::std::string::String> {
&self.dns_sec
}
/// Appends an item to `status_list`.
///
/// To override the contents of this collection use [`set_status_list`](Self::set_status_list).
///
/// <p>An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.</p>
/// <p>ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.</p>
/// <p>For a current list of domain name status codes and an explanation of what each code means, go to the <a href="https://www.icann.org/">ICANN website</a> and search for <code>epp status codes</code>. (Search on the ICANN website; web searches sometimes return an old version of the document.)</p>
pub fn status_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.status_list.unwrap_or_default();
v.push(input.into());
self.status_list = ::std::option::Option::Some(v);
self
}
/// <p>An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.</p>
/// <p>ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.</p>
/// <p>For a current list of domain name status codes and an explanation of what each code means, go to the <a href="https://www.icann.org/">ICANN website</a> and search for <code>epp status codes</code>. (Search on the ICANN website; web searches sometimes return an old version of the document.)</p>
pub fn set_status_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.status_list = input;
self
}
/// <p>An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.</p>
/// <p>ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.</p>
/// <p>For a current list of domain name status codes and an explanation of what each code means, go to the <a href="https://www.icann.org/">ICANN website</a> and search for <code>epp status codes</code>. (Search on the ICANN website; web searches sometimes return an old version of the document.)</p>
pub fn get_status_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.status_list
}
/// Appends an item to `dnssec_keys`.
///
/// To override the contents of this collection use [`set_dnssec_keys`](Self::set_dnssec_keys).
///
/// <p>A complex type that contains information about the DNSSEC configuration.</p>
pub fn dnssec_keys(mut self, input: crate::types::DnssecKey) -> Self {
let mut v = self.dnssec_keys.unwrap_or_default();
v.push(input);
self.dnssec_keys = ::std::option::Option::Some(v);
self
}
/// <p>A complex type that contains information about the DNSSEC configuration.</p>
pub fn set_dnssec_keys(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DnssecKey>>) -> Self {
self.dnssec_keys = input;
self
}
/// <p>A complex type that contains information about the DNSSEC configuration.</p>
pub fn get_dnssec_keys(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DnssecKey>> {
&self.dnssec_keys
}
/// <p>Provides details about the domain billing contact.</p>
pub fn billing_contact(mut self, input: crate::types::ContactDetail) -> Self {
self.billing_contact = ::std::option::Option::Some(input);
self
}
/// <p>Provides details about the domain billing contact.</p>
pub fn set_billing_contact(mut self, input: ::std::option::Option<crate::types::ContactDetail>) -> Self {
self.billing_contact = input;
self
}
/// <p>Provides details about the domain billing contact.</p>
pub fn get_billing_contact(&self) -> &::std::option::Option<crate::types::ContactDetail> {
&self.billing_contact
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the billing contact.</p>
pub fn billing_privacy(mut self, input: bool) -> Self {
self.billing_privacy = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the billing contact.</p>
pub fn set_billing_privacy(mut self, input: ::std::option::Option<bool>) -> Self {
self.billing_privacy = input;
self
}
/// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is <code>false</code>, WHOIS queries return the information that you entered for the billing contact.</p>
pub fn get_billing_privacy(&self) -> &::std::option::Option<bool> {
&self.billing_privacy
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetDomainDetailOutput`](crate::operation::get_domain_detail::GetDomainDetailOutput).
pub fn build(self) -> crate::operation::get_domain_detail::GetDomainDetailOutput {
crate::operation::get_domain_detail::GetDomainDetailOutput {
domain_name: self.domain_name,
nameservers: self.nameservers,
auto_renew: self.auto_renew,
admin_contact: self.admin_contact,
registrant_contact: self.registrant_contact,
tech_contact: self.tech_contact,
admin_privacy: self.admin_privacy,
registrant_privacy: self.registrant_privacy,
tech_privacy: self.tech_privacy,
registrar_name: self.registrar_name,
who_is_server: self.who_is_server,
registrar_url: self.registrar_url,
abuse_contact_email: self.abuse_contact_email,
abuse_contact_phone: self.abuse_contact_phone,
registry_domain_id: self.registry_domain_id,
creation_date: self.creation_date,
updated_date: self.updated_date,
expiration_date: self.expiration_date,
reseller: self.reseller,
dns_sec: self.dns_sec,
status_list: self.status_list,
dnssec_keys: self.dnssec_keys,
billing_contact: self.billing_contact,
billing_privacy: self.billing_privacy,
_request_id: self._request_id,
}
}
}
impl ::std::fmt::Debug for GetDomainDetailOutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetDomainDetailOutputBuilder");
formatter.field("domain_name", &self.domain_name);
formatter.field("nameservers", &self.nameservers);
formatter.field("auto_renew", &self.auto_renew);
formatter.field("admin_contact", &"*** Sensitive Data Redacted ***");
formatter.field("registrant_contact", &"*** Sensitive Data Redacted ***");
formatter.field("tech_contact", &"*** Sensitive Data Redacted ***");
formatter.field("admin_privacy", &self.admin_privacy);
formatter.field("registrant_privacy", &self.registrant_privacy);
formatter.field("tech_privacy", &self.tech_privacy);
formatter.field("registrar_name", &self.registrar_name);
formatter.field("who_is_server", &self.who_is_server);
formatter.field("registrar_url", &self.registrar_url);
formatter.field("abuse_contact_email", &"*** Sensitive Data Redacted ***");
formatter.field("abuse_contact_phone", &"*** Sensitive Data Redacted ***");
formatter.field("registry_domain_id", &self.registry_domain_id);
formatter.field("creation_date", &self.creation_date);
formatter.field("updated_date", &self.updated_date);
formatter.field("expiration_date", &self.expiration_date);
formatter.field("reseller", &self.reseller);
formatter.field("dns_sec", &self.dns_sec);
formatter.field("status_list", &self.status_list);
formatter.field("dnssec_keys", &self.dnssec_keys);
formatter.field("billing_contact", &"*** Sensitive Data Redacted ***");
formatter.field("billing_privacy", &self.billing_privacy);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}