AWS SDK for C++  0.12.9
AWS SDK for C++
ContactDetail.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 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 #pragma once
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace Route53Domains
33 {
34 namespace Model
35 {
36 
41  {
42  public:
43  ContactDetail();
45  ContactDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
54  inline const Aws::String& GetFirstName() const{ return m_firstName; }
55 
62  inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
63 
70  inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
71 
78  inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
79 
86  inline ContactDetail& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
87 
94  inline ContactDetail& WithFirstName(Aws::String&& value) { SetFirstName(value); return *this;}
95 
102  inline ContactDetail& WithFirstName(const char* value) { SetFirstName(value); return *this;}
103 
110  inline const Aws::String& GetLastName() const{ return m_lastName; }
111 
118  inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
119 
126  inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
127 
134  inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
135 
142  inline ContactDetail& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
143 
150  inline ContactDetail& WithLastName(Aws::String&& value) { SetLastName(value); return *this;}
151 
158  inline ContactDetail& WithLastName(const char* value) { SetLastName(value); return *this;}
159 
170  inline const ContactType& GetContactType() const{ return m_contactType; }
171 
182  inline void SetContactType(const ContactType& value) { m_contactTypeHasBeenSet = true; m_contactType = value; }
183 
194  inline void SetContactType(ContactType&& value) { m_contactTypeHasBeenSet = true; m_contactType = value; }
195 
206  inline ContactDetail& WithContactType(const ContactType& value) { SetContactType(value); return *this;}
207 
218  inline ContactDetail& WithContactType(ContactType&& value) { SetContactType(value); return *this;}
219 
227  inline const Aws::String& GetOrganizationName() const{ return m_organizationName; }
228 
236  inline void SetOrganizationName(const Aws::String& value) { m_organizationNameHasBeenSet = true; m_organizationName = value; }
237 
245  inline void SetOrganizationName(Aws::String&& value) { m_organizationNameHasBeenSet = true; m_organizationName = value; }
246 
254  inline void SetOrganizationName(const char* value) { m_organizationNameHasBeenSet = true; m_organizationName.assign(value); }
255 
263  inline ContactDetail& WithOrganizationName(const Aws::String& value) { SetOrganizationName(value); return *this;}
264 
272  inline ContactDetail& WithOrganizationName(Aws::String&& value) { SetOrganizationName(value); return *this;}
273 
281  inline ContactDetail& WithOrganizationName(const char* value) { SetOrganizationName(value); return *this;}
282 
289  inline const Aws::String& GetAddressLine1() const{ return m_addressLine1; }
290 
297  inline void SetAddressLine1(const Aws::String& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = value; }
298 
305  inline void SetAddressLine1(Aws::String&& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = value; }
306 
313  inline void SetAddressLine1(const char* value) { m_addressLine1HasBeenSet = true; m_addressLine1.assign(value); }
314 
321  inline ContactDetail& WithAddressLine1(const Aws::String& value) { SetAddressLine1(value); return *this;}
322 
329  inline ContactDetail& WithAddressLine1(Aws::String&& value) { SetAddressLine1(value); return *this;}
330 
337  inline ContactDetail& WithAddressLine1(const char* value) { SetAddressLine1(value); return *this;}
338 
345  inline const Aws::String& GetAddressLine2() const{ return m_addressLine2; }
346 
353  inline void SetAddressLine2(const Aws::String& value) { m_addressLine2HasBeenSet = true; m_addressLine2 = value; }
354 
361  inline void SetAddressLine2(Aws::String&& value) { m_addressLine2HasBeenSet = true; m_addressLine2 = value; }
362 
369  inline void SetAddressLine2(const char* value) { m_addressLine2HasBeenSet = true; m_addressLine2.assign(value); }
370 
377  inline ContactDetail& WithAddressLine2(const Aws::String& value) { SetAddressLine2(value); return *this;}
378 
385  inline ContactDetail& WithAddressLine2(Aws::String&& value) { SetAddressLine2(value); return *this;}
386 
393  inline ContactDetail& WithAddressLine2(const char* value) { SetAddressLine2(value); return *this;}
394 
401  inline const Aws::String& GetCity() const{ return m_city; }
402 
409  inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
410 
417  inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = value; }
418 
425  inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
426 
433  inline ContactDetail& WithCity(const Aws::String& value) { SetCity(value); return *this;}
434 
441  inline ContactDetail& WithCity(Aws::String&& value) { SetCity(value); return *this;}
442 
449  inline ContactDetail& WithCity(const char* value) { SetCity(value); return *this;}
450 
457  inline const Aws::String& GetState() const{ return m_state; }
458 
465  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
466 
473  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = value; }
474 
481  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
482 
489  inline ContactDetail& WithState(const Aws::String& value) { SetState(value); return *this;}
490 
497  inline ContactDetail& WithState(Aws::String&& value) { SetState(value); return *this;}
498 
505  inline ContactDetail& WithState(const char* value) { SetState(value); return *this;}
506 
513  inline const CountryCode& GetCountryCode() const{ return m_countryCode; }
514 
521  inline void SetCountryCode(const CountryCode& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
522 
529  inline void SetCountryCode(CountryCode&& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
530 
537  inline ContactDetail& WithCountryCode(const CountryCode& value) { SetCountryCode(value); return *this;}
538 
545  inline ContactDetail& WithCountryCode(CountryCode&& value) { SetCountryCode(value); return *this;}
546 
553  inline const Aws::String& GetZipCode() const{ return m_zipCode; }
554 
561  inline void SetZipCode(const Aws::String& value) { m_zipCodeHasBeenSet = true; m_zipCode = value; }
562 
569  inline void SetZipCode(Aws::String&& value) { m_zipCodeHasBeenSet = true; m_zipCode = value; }
570 
577  inline void SetZipCode(const char* value) { m_zipCodeHasBeenSet = true; m_zipCode.assign(value); }
578 
585  inline ContactDetail& WithZipCode(const Aws::String& value) { SetZipCode(value); return *this;}
586 
593  inline ContactDetail& WithZipCode(Aws::String&& value) { SetZipCode(value); return *this;}
594 
601  inline ContactDetail& WithZipCode(const char* value) { SetZipCode(value); return *this;}
602 
611  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
612 
621  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
622 
631  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
632 
641  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
642 
651  inline ContactDetail& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
652 
661  inline ContactDetail& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(value); return *this;}
662 
671  inline ContactDetail& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
672 
679  inline const Aws::String& GetEmail() const{ return m_email; }
680 
687  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
688 
695  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = value; }
696 
703  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
704 
711  inline ContactDetail& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
712 
719  inline ContactDetail& WithEmail(Aws::String&& value) { SetEmail(value); return *this;}
720 
727  inline ContactDetail& WithEmail(const char* value) { SetEmail(value); return *this;}
728 
737  inline const Aws::String& GetFax() const{ return m_fax; }
738 
747  inline void SetFax(const Aws::String& value) { m_faxHasBeenSet = true; m_fax = value; }
748 
757  inline void SetFax(Aws::String&& value) { m_faxHasBeenSet = true; m_fax = value; }
758 
767  inline void SetFax(const char* value) { m_faxHasBeenSet = true; m_fax.assign(value); }
768 
777  inline ContactDetail& WithFax(const Aws::String& value) { SetFax(value); return *this;}
778 
787  inline ContactDetail& WithFax(Aws::String&& value) { SetFax(value); return *this;}
788 
797  inline ContactDetail& WithFax(const char* value) { SetFax(value); return *this;}
798 
806  inline const Aws::Vector<ExtraParam>& GetExtraParams() const{ return m_extraParams; }
807 
815  inline void SetExtraParams(const Aws::Vector<ExtraParam>& value) { m_extraParamsHasBeenSet = true; m_extraParams = value; }
816 
824  inline void SetExtraParams(Aws::Vector<ExtraParam>&& value) { m_extraParamsHasBeenSet = true; m_extraParams = value; }
825 
833  inline ContactDetail& WithExtraParams(const Aws::Vector<ExtraParam>& value) { SetExtraParams(value); return *this;}
834 
842  inline ContactDetail& WithExtraParams(Aws::Vector<ExtraParam>&& value) { SetExtraParams(value); return *this;}
843 
851  inline ContactDetail& AddExtraParams(const ExtraParam& value) { m_extraParamsHasBeenSet = true; m_extraParams.push_back(value); return *this; }
852 
860  inline ContactDetail& AddExtraParams(ExtraParam&& value) { m_extraParamsHasBeenSet = true; m_extraParams.push_back(value); return *this; }
861 
862  private:
863  Aws::String m_firstName;
864  bool m_firstNameHasBeenSet;
865  Aws::String m_lastName;
866  bool m_lastNameHasBeenSet;
867  ContactType m_contactType;
868  bool m_contactTypeHasBeenSet;
869  Aws::String m_organizationName;
870  bool m_organizationNameHasBeenSet;
871  Aws::String m_addressLine1;
872  bool m_addressLine1HasBeenSet;
873  Aws::String m_addressLine2;
874  bool m_addressLine2HasBeenSet;
875  Aws::String m_city;
876  bool m_cityHasBeenSet;
877  Aws::String m_state;
878  bool m_stateHasBeenSet;
879  CountryCode m_countryCode;
880  bool m_countryCodeHasBeenSet;
881  Aws::String m_zipCode;
882  bool m_zipCodeHasBeenSet;
883  Aws::String m_phoneNumber;
884  bool m_phoneNumberHasBeenSet;
885  Aws::String m_email;
886  bool m_emailHasBeenSet;
887  Aws::String m_fax;
888  bool m_faxHasBeenSet;
889  Aws::Vector<ExtraParam> m_extraParams;
890  bool m_extraParamsHasBeenSet;
891  };
892 
893 } // namespace Model
894 } // namespace Route53Domains
895 } // namespace Aws
ContactDetail & WithZipCode(Aws::String &&value)
void SetAddressLine2(Aws::String &&value)
ContactDetail & WithFax(const Aws::String &value)
void SetLastName(const Aws::String &value)
ContactDetail & WithFirstName(Aws::String &&value)
Definition: ContactDetail.h:94
void SetOrganizationName(const Aws::String &value)
ContactDetail & WithCountryCode(const CountryCode &value)
ContactDetail & WithPhoneNumber(const char *value)
ContactDetail & WithCity(Aws::String &&value)
ContactDetail & WithOrganizationName(Aws::String &&value)
const Aws::String & GetOrganizationName() const
void SetCountryCode(CountryCode &&value)
ContactDetail & WithExtraParams(const Aws::Vector< ExtraParam > &value)
ContactDetail & WithPhoneNumber(const Aws::String &value)
const Aws::String & GetEmail() const
ContactDetail & WithLastName(const char *value)
void SetPhoneNumber(const Aws::String &value)
const Aws::String & GetFirstName() const
Definition: ContactDetail.h:54
ContactDetail & WithAddressLine2(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetCity(const Aws::String &value)
ContactDetail & WithPhoneNumber(Aws::String &&value)
ContactDetail & WithEmail(Aws::String &&value)
#define AWS_ROUTE53DOMAINS_API
ContactDetail & WithEmail(const char *value)
void SetFirstName(const Aws::String &value)
Definition: ContactDetail.h:62
ContactDetail & WithCity(const char *value)
ContactDetail & WithAddressLine1(const char *value)
ContactDetail & WithCity(const Aws::String &value)
void SetAddressLine2(const Aws::String &value)
ContactDetail & WithState(Aws::String &&value)
const Aws::String & GetLastName() const
ContactDetail & WithAddressLine1(Aws::String &&value)
const ContactType & GetContactType() const
const Aws::String & GetAddressLine2() const
ContactDetail & WithLastName(Aws::String &&value)
void SetZipCode(Aws::String &&value)
ContactDetail & WithContactType(ContactType &&value)
void SetFirstName(Aws::String &&value)
Definition: ContactDetail.h:70
ContactDetail & WithFirstName(const char *value)
void SetExtraParams(Aws::Vector< ExtraParam > &&value)
void SetExtraParams(const Aws::Vector< ExtraParam > &value)
const Aws::String & GetState() const
const Aws::String & GetFax() const
const Aws::String & GetPhoneNumber() const
ContactDetail & WithExtraParams(Aws::Vector< ExtraParam > &&value)
const Aws::String & GetCity() const
void SetContactType(ContactType &&value)
void SetPhoneNumber(Aws::String &&value)
const CountryCode & GetCountryCode() const
void SetContactType(const ContactType &value)
ContactDetail & WithFirstName(const Aws::String &value)
Definition: ContactDetail.h:86
ContactDetail & WithContactType(const ContactType &value)
ContactDetail & WithState(const char *value)
void SetAddressLine1(Aws::String &&value)
ContactDetail & WithState(const Aws::String &value)
void SetLastName(Aws::String &&value)
ContactDetail & WithAddressLine2(Aws::String &&value)
ContactDetail & WithFax(Aws::String &&value)
ContactDetail & AddExtraParams(const ExtraParam &value)
void SetEmail(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetState(const Aws::String &value)
ContactDetail & WithAddressLine2(const Aws::String &value)
ContactDetail & WithFax(const char *value)
const Aws::String & GetAddressLine1() const
ContactDetail & WithLastName(const Aws::String &value)
void SetAddressLine1(const Aws::String &value)
void SetZipCode(const Aws::String &value)
ContactDetail & WithAddressLine1(const Aws::String &value)
void SetOrganizationName(Aws::String &&value)
ContactDetail & AddExtraParams(ExtraParam &&value)
ContactDetail & WithOrganizationName(const char *value)
ContactDetail & WithZipCode(const char *value)
const Aws::String & GetZipCode() const
const Aws::Vector< ExtraParam > & GetExtraParams() const
void SetCountryCode(const CountryCode &value)
void SetOrganizationName(const char *value)
ContactDetail & WithOrganizationName(const Aws::String &value)
ContactDetail & WithZipCode(const Aws::String &value)
ContactDetail & WithCountryCode(CountryCode &&value)
JSON (JavaScript Object Notation).
ContactDetail & WithEmail(const Aws::String &value)
void SetFax(const Aws::String &value)