/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the kendra-2019-02-03.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Kendra.Model { /// /// Provides the configuration information to connect to websites that require basic user /// authentication. /// public partial class BasicAuthenticationConfiguration { private string _credentials; private string _host; private int? _port; /// /// Gets and sets the property Credentials. /// /// Your secret ARN, which you can create in Secrets /// Manager /// /// /// /// You use a secret if basic authentication credentials are required to connect to a /// website. The secret stores your credentials of user name and password. /// /// [AWSProperty(Required=true, Min=1, Max=1284)] public string Credentials { get { return this._credentials; } set { this._credentials = value; } } // Check to see if Credentials property is set internal bool IsSetCredentials() { return this._credentials != null; } /// /// Gets and sets the property Host. /// /// The name of the website host you want to connect to using authentication credentials. /// /// /// /// For example, the host name of https://a.example.com/page1.html is "a.example.com". /// /// [AWSProperty(Required=true, Min=1, Max=253)] public string Host { get { return this._host; } set { this._host = value; } } // Check to see if Host property is set internal bool IsSetHost() { return this._host != null; } /// /// Gets and sets the property Port. /// /// The port number of the website host you want to connect to using authentication credentials. /// /// /// /// For example, the port for https://a.example.com/page1.html is 443, the standard port /// for HTTPS. /// /// [AWSProperty(Required=true, Min=1, Max=65535)] public int Port { get { return this._port.GetValueOrDefault(); } set { this._port = value; } } // Check to see if Port property is set internal bool IsSetPort() { return this._port.HasValue; } } }