AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeConditionalForwardersRequest.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 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
44 
49  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
50 
55  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
56 
61  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
62 
67  inline DescribeConditionalForwardersRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
68 
73  inline DescribeConditionalForwardersRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
74 
79  inline DescribeConditionalForwardersRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
80 
86  inline const Aws::Vector<Aws::String>& GetRemoteDomainNames() const{ return m_remoteDomainNames; }
87 
93  inline void SetRemoteDomainNames(const Aws::Vector<Aws::String>& value) { m_remoteDomainNamesHasBeenSet = true; m_remoteDomainNames = value; }
94 
100  inline void SetRemoteDomainNames(Aws::Vector<Aws::String>&& value) { m_remoteDomainNamesHasBeenSet = true; m_remoteDomainNames = value; }
101 
107  inline DescribeConditionalForwardersRequest& WithRemoteDomainNames(const Aws::Vector<Aws::String>& value) { SetRemoteDomainNames(value); return *this;}
108 
114  inline DescribeConditionalForwardersRequest& WithRemoteDomainNames(Aws::Vector<Aws::String>&& value) { SetRemoteDomainNames(value); return *this;}
115 
121  inline DescribeConditionalForwardersRequest& AddRemoteDomainNames(const Aws::String& value) { m_remoteDomainNamesHasBeenSet = true; m_remoteDomainNames.push_back(value); return *this; }
122 
128  inline DescribeConditionalForwardersRequest& AddRemoteDomainNames(Aws::String&& value) { m_remoteDomainNamesHasBeenSet = true; m_remoteDomainNames.push_back(value); return *this; }
129 
135  inline DescribeConditionalForwardersRequest& AddRemoteDomainNames(const char* value) { m_remoteDomainNamesHasBeenSet = true; m_remoteDomainNames.push_back(value); return *this; }
136 
137  private:
138  Aws::String m_directoryId;
139  bool m_directoryIdHasBeenSet;
140  Aws::Vector<Aws::String> m_remoteDomainNames;
141  bool m_remoteDomainNamesHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace DirectoryService
146 } // namespace Aws
DescribeConditionalForwardersRequest & WithDirectoryId(Aws::String &&value)
#define AWS_DIRECTORYSERVICE_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeConditionalForwardersRequest & WithDirectoryId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeConditionalForwardersRequest & WithDirectoryId(const Aws::String &value)
DescribeConditionalForwardersRequest & AddRemoteDomainNames(Aws::String &&value)
DescribeConditionalForwardersRequest & AddRemoteDomainNames(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeConditionalForwardersRequest & AddRemoteDomainNames(const Aws::String &value)
DescribeConditionalForwardersRequest & WithRemoteDomainNames(const Aws::Vector< Aws::String > &value)
DescribeConditionalForwardersRequest & WithRemoteDomainNames(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).