Interface CreatePolicyResponse.Builder

  • Method Details

    • policyStoreId

      CreatePolicyResponse.Builder policyStoreId(String policyStoreId)

      The ID of the policy store that contains the new policy.

      Parameters:
      policyStoreId - The ID of the policy store that contains the new policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyId

      The unique ID of the new policy.

      Parameters:
      policyId - The unique ID of the new policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyType

      CreatePolicyResponse.Builder policyType(String policyType)

      The policy type of the new policy.

      Parameters:
      policyType - The policy type of the new policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • policyType

      CreatePolicyResponse.Builder policyType(PolicyType policyType)

      The policy type of the new policy.

      Parameters:
      policyType - The policy type of the new policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • principal

      The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.

      Parameters:
      principal - The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.

      This is a convenience method that creates an instance of the EntityIdentifier.Builder avoiding the need to create one manually via EntityIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to principal(EntityIdentifier).

      Parameters:
      principal - a consumer that will call methods on EntityIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resource

      The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.

      Parameters:
      resource - The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.

      This is a convenience method that creates an instance of the EntityIdentifier.Builder avoiding the need to create one manually via EntityIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resource(EntityIdentifier).

      Parameters:
      resource - a consumer that will call methods on EntityIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • actions

      The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .

      Parameters:
      actions - The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .

      Parameters:
      actions - The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]} .

      This is a convenience method that creates an instance of the ActionIdentifier.Builder avoiding the need to create one manually via ActionIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to actions(List<ActionIdentifier>).

      Parameters:
      actions - a consumer that will call methods on ActionIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdDate

      CreatePolicyResponse.Builder createdDate(Instant createdDate)

      The date and time the policy was originally created.

      Parameters:
      createdDate - The date and time the policy was originally created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedDate

      CreatePolicyResponse.Builder lastUpdatedDate(Instant lastUpdatedDate)

      The date and time the policy was last updated.

      Parameters:
      lastUpdatedDate - The date and time the policy was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • effect

      The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".

      Parameters:
      effect - The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • effect

      The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".

      Parameters:
      effect - The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: