/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A JSON object containing one or more of the following fields:
See
* Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return the TargetARN for * specified VolumeARN.
*/ inline const Aws::String& GetTargetARN() const{ return m_targetARN; } /** *The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return the TargetARN for * specified VolumeARN.
*/ inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; } /** *The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return the TargetARN for * specified VolumeARN.
*/ inline void SetTargetARN(const Aws::String& value) { m_targetARNHasBeenSet = true; m_targetARN = value; } /** *The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return the TargetARN for * specified VolumeARN.
*/ inline void SetTargetARN(Aws::String&& value) { m_targetARNHasBeenSet = true; m_targetARN = std::move(value); } /** *The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return the TargetARN for * specified VolumeARN.
*/ inline void SetTargetARN(const char* value) { m_targetARNHasBeenSet = true; m_targetARN.assign(value); } /** *The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return the TargetARN for * specified VolumeARN.
*/ inline UpdateChapCredentialsRequest& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;} /** *The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return the TargetARN for * specified VolumeARN.
*/ inline UpdateChapCredentialsRequest& WithTargetARN(Aws::String&& value) { SetTargetARN(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return the TargetARN for * specified VolumeARN.
*/ inline UpdateChapCredentialsRequest& 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.
The secret * key must be between 12 and 16 bytes when encoded in UTF-8.
*/ 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.
The secret * key must be between 12 and 16 bytes when encoded in UTF-8.
*/ 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.
The secret * key must be between 12 and 16 bytes when encoded in UTF-8.
*/ 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.
The secret * key must be between 12 and 16 bytes when encoded in UTF-8.
*/ 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.
The secret * key must be between 12 and 16 bytes when encoded in UTF-8.
*/ 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.
The secret * key must be between 12 and 16 bytes when encoded in UTF-8.
*/ inline UpdateChapCredentialsRequest& 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.
The secret * key must be between 12 and 16 bytes when encoded in UTF-8.
*/ inline UpdateChapCredentialsRequest& 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.
The secret * key must be between 12 and 16 bytes when encoded in UTF-8.
*/ inline UpdateChapCredentialsRequest& 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 UpdateChapCredentialsRequest& WithInitiatorName(const Aws::String& value) { SetInitiatorName(value); return *this;} /** *The iSCSI initiator that connects to the target.
*/ inline UpdateChapCredentialsRequest& WithInitiatorName(Aws::String&& value) { SetInitiatorName(std::move(value)); return *this;} /** *The iSCSI initiator that connects to the target.
*/ inline UpdateChapCredentialsRequest& 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).
Byte constraints: Minimum bytes * of 12. Maximum bytes of 16.
The secret key must be between 12 and * 16 bytes when encoded in UTF-8.
*/ 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).
Byte constraints: Minimum bytes * of 12. Maximum bytes of 16.
The secret key must be between 12 and * 16 bytes when encoded in UTF-8.
*/ 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).
Byte constraints: Minimum bytes * of 12. Maximum bytes of 16.
The secret key must be between 12 and * 16 bytes when encoded in UTF-8.
*/ 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).
Byte constraints: Minimum bytes * of 12. Maximum bytes of 16.
The secret key must be between 12 and * 16 bytes when encoded in UTF-8.
*/ 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).
Byte constraints: Minimum bytes * of 12. Maximum bytes of 16.
The secret key must be between 12 and * 16 bytes when encoded in UTF-8.
*/ 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).
Byte constraints: Minimum bytes * of 12. Maximum bytes of 16.
The secret key must be between 12 and * 16 bytes when encoded in UTF-8.
*/ inline UpdateChapCredentialsRequest& 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).
Byte constraints: Minimum bytes * of 12. Maximum bytes of 16.
The secret key must be between 12 and * 16 bytes when encoded in UTF-8.
*/ inline UpdateChapCredentialsRequest& 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).
Byte constraints: Minimum bytes * of 12. Maximum bytes of 16.
The secret key must be between 12 and * 16 bytes when encoded in UTF-8.
*/ inline UpdateChapCredentialsRequest& 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