EmailRecipient

class oci.usage_api.models.EmailRecipient(**kwargs)

Bases: object

The email recipient to receive usage statements for the subscription.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a EmailRecipient.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a EmailRecipient.
email_id [Required] Gets the email_id of this EmailRecipient.
first_name Gets the first_name of this EmailRecipient.
last_name Gets the last_name of this EmailRecipient.
lifecycle_state [Required] Gets the lifecycle_state of this EmailRecipient.

Methods

__init__(**kwargs) Initializes a new EmailRecipient object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a EmailRecipient. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a EmailRecipient. This constant has a value of “INACTIVE”

__init__(**kwargs)

Initializes a new EmailRecipient object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • first_name (str) – The value to assign to the first_name property of this EmailRecipient.
  • last_name (str) – The value to assign to the last_name property of this EmailRecipient.
  • email_id (str) – The value to assign to the email_id property of this EmailRecipient.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this EmailRecipient. Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
email_id

[Required] Gets the email_id of this EmailRecipient. the email of the recipient.

Returns:The email_id of this EmailRecipient.
Return type:str
first_name

Gets the first_name of this EmailRecipient. the first name of the recipient.

Returns:The first_name of this EmailRecipient.
Return type:str
last_name

Gets the last_name of this EmailRecipient. the last name of the recipient.

Returns:The last_name of this EmailRecipient.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this EmailRecipient. The email recipient lifecycle state.

Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this EmailRecipient.
Return type:str