AWS SDK for C++  0.12.9
AWS SDK for C++
CreateConditionalForwarderRequest.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
20 
21 namespace Aws
22 {
23 namespace DirectoryService
24 {
25 namespace Model
26 {
27 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
45  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
46 
51  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
52 
57  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
58 
63  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
64 
69  inline CreateConditionalForwarderRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
70 
75  inline CreateConditionalForwarderRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
76 
81  inline CreateConditionalForwarderRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
82 
87  inline const Aws::String& GetRemoteDomainName() const{ return m_remoteDomainName; }
88 
93  inline void SetRemoteDomainName(const Aws::String& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
94 
99  inline void SetRemoteDomainName(Aws::String&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
100 
105  inline void SetRemoteDomainName(const char* value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName.assign(value); }
106 
111  inline CreateConditionalForwarderRequest& WithRemoteDomainName(const Aws::String& value) { SetRemoteDomainName(value); return *this;}
112 
117  inline CreateConditionalForwarderRequest& WithRemoteDomainName(Aws::String&& value) { SetRemoteDomainName(value); return *this;}
118 
123  inline CreateConditionalForwarderRequest& WithRemoteDomainName(const char* value) { SetRemoteDomainName(value); return *this;}
124 
129  inline const Aws::Vector<Aws::String>& GetDnsIpAddrs() const{ return m_dnsIpAddrs; }
130 
135  inline void SetDnsIpAddrs(const Aws::Vector<Aws::String>& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs = value; }
136 
141  inline void SetDnsIpAddrs(Aws::Vector<Aws::String>&& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs = value; }
142 
147  inline CreateConditionalForwarderRequest& WithDnsIpAddrs(const Aws::Vector<Aws::String>& value) { SetDnsIpAddrs(value); return *this;}
148 
153  inline CreateConditionalForwarderRequest& WithDnsIpAddrs(Aws::Vector<Aws::String>&& value) { SetDnsIpAddrs(value); return *this;}
154 
159  inline CreateConditionalForwarderRequest& AddDnsIpAddrs(const Aws::String& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(value); return *this; }
160 
165  inline CreateConditionalForwarderRequest& AddDnsIpAddrs(Aws::String&& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(value); return *this; }
166 
171  inline CreateConditionalForwarderRequest& AddDnsIpAddrs(const char* value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(value); return *this; }
172 
173  private:
174  Aws::String m_directoryId;
175  bool m_directoryIdHasBeenSet;
176  Aws::String m_remoteDomainName;
177  bool m_remoteDomainNameHasBeenSet;
178  Aws::Vector<Aws::String> m_dnsIpAddrs;
179  bool m_dnsIpAddrsHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace DirectoryService
184 } // namespace Aws
#define AWS_DIRECTORYSERVICE_API
CreateConditionalForwarderRequest & WithDirectoryId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateConditionalForwarderRequest & WithDirectoryId(const char *value)
CreateConditionalForwarderRequest & WithDnsIpAddrs(const Aws::Vector< Aws::String > &value)
CreateConditionalForwarderRequest & AddDnsIpAddrs(Aws::String &&value)
CreateConditionalForwarderRequest & AddDnsIpAddrs(const char *value)
CreateConditionalForwarderRequest & WithDirectoryId(Aws::String &&value)
CreateConditionalForwarderRequest & WithRemoteDomainName(Aws::String &&value)
CreateConditionalForwarderRequest & WithDnsIpAddrs(Aws::Vector< Aws::String > &&value)
CreateConditionalForwarderRequest & WithRemoteDomainName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateConditionalForwarderRequest & WithRemoteDomainName(const char *value)
CreateConditionalForwarderRequest & AddDnsIpAddrs(const Aws::String &value)
JSON (JavaScript Object Notation).