/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Chime { namespace Model { /** *

The details of the SIP media application, including name and endpoints. An * AWS account can have multiple SIP media applications.

See Also:

* AWS * API Reference

*/ class SipMediaApplication { public: AWS_CHIME_API SipMediaApplication(); AWS_CHIME_API SipMediaApplication(Aws::Utils::Json::JsonView jsonValue); AWS_CHIME_API SipMediaApplication& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The SIP media application ID.

*/ inline const Aws::String& GetSipMediaApplicationId() const{ return m_sipMediaApplicationId; } /** *

The SIP media application ID.

*/ inline bool SipMediaApplicationIdHasBeenSet() const { return m_sipMediaApplicationIdHasBeenSet; } /** *

The SIP media application ID.

*/ inline void SetSipMediaApplicationId(const Aws::String& value) { m_sipMediaApplicationIdHasBeenSet = true; m_sipMediaApplicationId = value; } /** *

The SIP media application ID.

*/ inline void SetSipMediaApplicationId(Aws::String&& value) { m_sipMediaApplicationIdHasBeenSet = true; m_sipMediaApplicationId = std::move(value); } /** *

The SIP media application ID.

*/ inline void SetSipMediaApplicationId(const char* value) { m_sipMediaApplicationIdHasBeenSet = true; m_sipMediaApplicationId.assign(value); } /** *

The SIP media application ID.

*/ inline SipMediaApplication& WithSipMediaApplicationId(const Aws::String& value) { SetSipMediaApplicationId(value); return *this;} /** *

The SIP media application ID.

*/ inline SipMediaApplication& WithSipMediaApplicationId(Aws::String&& value) { SetSipMediaApplicationId(std::move(value)); return *this;} /** *

The SIP media application ID.

*/ inline SipMediaApplication& WithSipMediaApplicationId(const char* value) { SetSipMediaApplicationId(value); return *this;} /** *

The AWS Region in which the SIP media application is created.

*/ inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; } /** *

The AWS Region in which the SIP media application is created.

*/ inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; } /** *

The AWS Region in which the SIP media application is created.

*/ inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; } /** *

The AWS Region in which the SIP media application is created.

*/ inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); } /** *

The AWS Region in which the SIP media application is created.

*/ inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); } /** *

The AWS Region in which the SIP media application is created.

*/ inline SipMediaApplication& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;} /** *

The AWS Region in which the SIP media application is created.

*/ inline SipMediaApplication& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;} /** *

The AWS Region in which the SIP media application is created.

*/ inline SipMediaApplication& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;} /** *

The name of the SIP media application.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the SIP media application.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the SIP media application.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the SIP media application.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the SIP media application.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the SIP media application.

*/ inline SipMediaApplication& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the SIP media application.

*/ inline SipMediaApplication& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the SIP media application.

*/ inline SipMediaApplication& WithName(const char* value) { SetName(value); return *this;} /** *

List of endpoints for SIP media application. Currently, only one endpoint per * SIP media application is permitted.

*/ inline const Aws::Vector& GetEndpoints() const{ return m_endpoints; } /** *

List of endpoints for SIP media application. Currently, only one endpoint per * SIP media application is permitted.

*/ inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; } /** *

List of endpoints for SIP media application. Currently, only one endpoint per * SIP media application is permitted.

*/ inline void SetEndpoints(const Aws::Vector& value) { m_endpointsHasBeenSet = true; m_endpoints = value; } /** *

List of endpoints for SIP media application. Currently, only one endpoint per * SIP media application is permitted.

*/ inline void SetEndpoints(Aws::Vector&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::move(value); } /** *

List of endpoints for SIP media application. Currently, only one endpoint per * SIP media application is permitted.

*/ inline SipMediaApplication& WithEndpoints(const Aws::Vector& value) { SetEndpoints(value); return *this;} /** *

List of endpoints for SIP media application. Currently, only one endpoint per * SIP media application is permitted.

*/ inline SipMediaApplication& WithEndpoints(Aws::Vector&& value) { SetEndpoints(std::move(value)); return *this;} /** *

List of endpoints for SIP media application. Currently, only one endpoint per * SIP media application is permitted.

*/ inline SipMediaApplication& AddEndpoints(const SipMediaApplicationEndpoint& value) { m_endpointsHasBeenSet = true; m_endpoints.push_back(value); return *this; } /** *

List of endpoints for SIP media application. Currently, only one endpoint per * SIP media application is permitted.

*/ inline SipMediaApplication& AddEndpoints(SipMediaApplicationEndpoint&& value) { m_endpointsHasBeenSet = true; m_endpoints.push_back(std::move(value)); return *this; } /** *

The SIP media application creation timestamp, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The SIP media application creation timestamp, in ISO 8601 format.

*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *

The SIP media application creation timestamp, in ISO 8601 format.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *

The SIP media application creation timestamp, in ISO 8601 format.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *

The SIP media application creation timestamp, in ISO 8601 format.

*/ inline SipMediaApplication& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The SIP media application creation timestamp, in ISO 8601 format.

*/ inline SipMediaApplication& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The SIP media application updated timestamp, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; } /** *

The SIP media application updated timestamp, in ISO 8601 format.

*/ inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; } /** *

The SIP media application updated timestamp, in ISO 8601 format.

*/ inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; } /** *

The SIP media application updated timestamp, in ISO 8601 format.

*/ inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); } /** *

The SIP media application updated timestamp, in ISO 8601 format.

*/ inline SipMediaApplication& WithUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetUpdatedTimestamp(value); return *this;} /** *

The SIP media application updated timestamp, in ISO 8601 format.

*/ inline SipMediaApplication& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;} private: Aws::String m_sipMediaApplicationId; bool m_sipMediaApplicationIdHasBeenSet = false; Aws::String m_awsRegion; bool m_awsRegionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_endpoints; bool m_endpointsHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; Aws::Utils::DateTime m_updatedTimestamp; bool m_updatedTimestampHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws