/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes Challenge-Handshake Authentication Protocol (CHAP) information that
* supports authentication between your gateway and iSCSI initiators.See
* Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 * lowercase letters, numbers, periods (.), and hyphens (-).
*/ inline const Aws::String& GetTargetARN() const{ return m_targetARN; } /** *The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 * lowercase letters, numbers, periods (.), and hyphens (-).
*/ inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; } /** *The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 * lowercase letters, numbers, periods (.), and hyphens (-).
*/ inline void SetTargetARN(const Aws::String& value) { m_targetARNHasBeenSet = true; m_targetARN = value; } /** *The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 * lowercase letters, numbers, periods (.), and hyphens (-).
*/ inline void SetTargetARN(Aws::String&& value) { m_targetARNHasBeenSet = true; m_targetARN = std::move(value); } /** *The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 * lowercase letters, numbers, periods (.), and hyphens (-).
*/ inline void SetTargetARN(const char* value) { m_targetARNHasBeenSet = true; m_targetARN.assign(value); } /** *The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 * lowercase letters, numbers, periods (.), and hyphens (-).
*/ inline ChapInfo& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;} /** *The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 * lowercase letters, numbers, periods (.), and hyphens (-).
*/ inline ChapInfo& WithTargetARN(Aws::String&& value) { SetTargetARN(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 * lowercase letters, numbers, periods (.), and hyphens (-).
*/ inline ChapInfo& WithTargetARN(const char* value) { SetTargetARN(value); return *this;} /** *The secret key that the initiator (for example, the Windows client) must * provide to participate in mutual CHAP with the target.
*/ inline const Aws::String& GetSecretToAuthenticateInitiator() const{ return m_secretToAuthenticateInitiator; } /** *The secret key that the initiator (for example, the Windows client) must * provide to participate in mutual CHAP with the target.
*/ inline bool SecretToAuthenticateInitiatorHasBeenSet() const { return m_secretToAuthenticateInitiatorHasBeenSet; } /** *The secret key that the initiator (for example, the Windows client) must * provide to participate in mutual CHAP with the target.
*/ inline void SetSecretToAuthenticateInitiator(const Aws::String& value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator = value; } /** *The secret key that the initiator (for example, the Windows client) must * provide to participate in mutual CHAP with the target.
*/ inline void SetSecretToAuthenticateInitiator(Aws::String&& value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator = std::move(value); } /** *The secret key that the initiator (for example, the Windows client) must * provide to participate in mutual CHAP with the target.
*/ inline void SetSecretToAuthenticateInitiator(const char* value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator.assign(value); } /** *The secret key that the initiator (for example, the Windows client) must * provide to participate in mutual CHAP with the target.
*/ inline ChapInfo& WithSecretToAuthenticateInitiator(const Aws::String& value) { SetSecretToAuthenticateInitiator(value); return *this;} /** *The secret key that the initiator (for example, the Windows client) must * provide to participate in mutual CHAP with the target.
*/ inline ChapInfo& WithSecretToAuthenticateInitiator(Aws::String&& value) { SetSecretToAuthenticateInitiator(std::move(value)); return *this;} /** *The secret key that the initiator (for example, the Windows client) must * provide to participate in mutual CHAP with the target.
*/ inline ChapInfo& WithSecretToAuthenticateInitiator(const char* value) { SetSecretToAuthenticateInitiator(value); return *this;} /** *The iSCSI initiator that connects to the target.
*/ inline const Aws::String& GetInitiatorName() const{ return m_initiatorName; } /** *The iSCSI initiator that connects to the target.
*/ inline bool InitiatorNameHasBeenSet() const { return m_initiatorNameHasBeenSet; } /** *The iSCSI initiator that connects to the target.
*/ inline void SetInitiatorName(const Aws::String& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = value; } /** *The iSCSI initiator that connects to the target.
*/ inline void SetInitiatorName(Aws::String&& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = std::move(value); } /** *The iSCSI initiator that connects to the target.
*/ inline void SetInitiatorName(const char* value) { m_initiatorNameHasBeenSet = true; m_initiatorName.assign(value); } /** *The iSCSI initiator that connects to the target.
*/ inline ChapInfo& WithInitiatorName(const Aws::String& value) { SetInitiatorName(value); return *this;} /** *The iSCSI initiator that connects to the target.
*/ inline ChapInfo& WithInitiatorName(Aws::String&& value) { SetInitiatorName(std::move(value)); return *this;} /** *The iSCSI initiator that connects to the target.
*/ inline ChapInfo& WithInitiatorName(const char* value) { SetInitiatorName(value); return *this;} /** *The secret key that the target must provide to participate in mutual CHAP * with the initiator (e.g., Windows client).
*/ inline const Aws::String& GetSecretToAuthenticateTarget() const{ return m_secretToAuthenticateTarget; } /** *The secret key that the target must provide to participate in mutual CHAP * with the initiator (e.g., Windows client).
*/ inline bool SecretToAuthenticateTargetHasBeenSet() const { return m_secretToAuthenticateTargetHasBeenSet; } /** *The secret key that the target must provide to participate in mutual CHAP * with the initiator (e.g., Windows client).
*/ inline void SetSecretToAuthenticateTarget(const Aws::String& value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget = value; } /** *The secret key that the target must provide to participate in mutual CHAP * with the initiator (e.g., Windows client).
*/ inline void SetSecretToAuthenticateTarget(Aws::String&& value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget = std::move(value); } /** *The secret key that the target must provide to participate in mutual CHAP * with the initiator (e.g., Windows client).
*/ inline void SetSecretToAuthenticateTarget(const char* value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget.assign(value); } /** *The secret key that the target must provide to participate in mutual CHAP * with the initiator (e.g., Windows client).
*/ inline ChapInfo& WithSecretToAuthenticateTarget(const Aws::String& value) { SetSecretToAuthenticateTarget(value); return *this;} /** *The secret key that the target must provide to participate in mutual CHAP * with the initiator (e.g., Windows client).
*/ inline ChapInfo& WithSecretToAuthenticateTarget(Aws::String&& value) { SetSecretToAuthenticateTarget(std::move(value)); return *this;} /** *The secret key that the target must provide to participate in mutual CHAP * with the initiator (e.g., Windows client).
*/ inline ChapInfo& WithSecretToAuthenticateTarget(const char* value) { SetSecretToAuthenticateTarget(value); return *this;} private: Aws::String m_targetARN; bool m_targetARNHasBeenSet = false; Aws::String m_secretToAuthenticateInitiator; bool m_secretToAuthenticateInitiatorHasBeenSet = false; Aws::String m_initiatorName; bool m_initiatorNameHasBeenSet = false; Aws::String m_secretToAuthenticateTarget; bool m_secretToAuthenticateTargetHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws