AWS SDK for C++  0.12.9
AWS SDK for C++
DeviceiSCSIAttributes.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace StorageGateway
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  DeviceiSCSIAttributes& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
48  inline const Aws::String& GetTargetARN() const{ return m_targetARN; }
49 
54  inline void SetTargetARN(const Aws::String& value) { m_targetARNHasBeenSet = true; m_targetARN = value; }
55 
60  inline void SetTargetARN(Aws::String&& value) { m_targetARNHasBeenSet = true; m_targetARN = value; }
61 
66  inline void SetTargetARN(const char* value) { m_targetARNHasBeenSet = true; m_targetARN.assign(value); }
67 
72  inline DeviceiSCSIAttributes& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;}
73 
78  inline DeviceiSCSIAttributes& WithTargetARN(Aws::String&& value) { SetTargetARN(value); return *this;}
79 
84  inline DeviceiSCSIAttributes& WithTargetARN(const char* value) { SetTargetARN(value); return *this;}
85 
89  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
90 
94  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
95 
99  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
100 
104  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
105 
109  inline DeviceiSCSIAttributes& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
110 
114  inline DeviceiSCSIAttributes& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
115 
119  inline DeviceiSCSIAttributes& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
120 
124  inline long GetNetworkInterfacePort() const{ return m_networkInterfacePort; }
125 
129  inline void SetNetworkInterfacePort(long value) { m_networkInterfacePortHasBeenSet = true; m_networkInterfacePort = value; }
130 
134  inline DeviceiSCSIAttributes& WithNetworkInterfacePort(long value) { SetNetworkInterfacePort(value); return *this;}
135 
139  inline bool GetChapEnabled() const{ return m_chapEnabled; }
140 
144  inline void SetChapEnabled(bool value) { m_chapEnabledHasBeenSet = true; m_chapEnabled = value; }
145 
149  inline DeviceiSCSIAttributes& WithChapEnabled(bool value) { SetChapEnabled(value); return *this;}
150 
151  private:
152  Aws::String m_targetARN;
153  bool m_targetARNHasBeenSet;
154  Aws::String m_networkInterfaceId;
155  bool m_networkInterfaceIdHasBeenSet;
156  long m_networkInterfacePort;
157  bool m_networkInterfacePortHasBeenSet;
158  bool m_chapEnabled;
159  bool m_chapEnabledHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace StorageGateway
164 } // namespace Aws
DeviceiSCSIAttributes & WithNetworkInterfacePort(long value)
DeviceiSCSIAttributes & WithTargetARN(Aws::String &&value)
DeviceiSCSIAttributes & WithNetworkInterfaceId(const char *value)
DeviceiSCSIAttributes & WithChapEnabled(bool value)
DeviceiSCSIAttributes & WithTargetARN(const Aws::String &value)
DeviceiSCSIAttributes & WithNetworkInterfaceId(Aws::String &&value)
DeviceiSCSIAttributes & WithNetworkInterfaceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeviceiSCSIAttributes & WithTargetARN(const char *value)
#define AWS_STORAGEGATEWAY_API
JSON (JavaScript Object Notation).