Class PutPolicyOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(String id,
                       String bluemixInstance,
                       SetKeyPoliciesOneOf keyPolicyPutBody)
        Instantiates a new builder with required properties.
        Parameters:
        id - the id
        bluemixInstance - the bluemixInstance
        keyPolicyPutBody - the keyPolicyPutBody
    • Method Detail

      • build

        public PutPolicyOptions build()
        Builds a PutPolicyOptions.
        Returns:
        the new PutPolicyOptions instance
      • bluemixInstance

        public PutPolicyOptions.Builder bluemixInstance​(String bluemixInstance)
        Set the bluemixInstance.
        Parameters:
        bluemixInstance - the bluemixInstance
        Returns:
        the PutPolicyOptions builder
      • keyPolicyPutBody

        public PutPolicyOptions.Builder keyPolicyPutBody​(SetKeyPoliciesOneOf keyPolicyPutBody)
        Set the keyPolicyPutBody.
        Parameters:
        keyPolicyPutBody - the keyPolicyPutBody
        Returns:
        the PutPolicyOptions builder
      • correlationId

        public PutPolicyOptions.Builder correlationId​(String correlationId)
        Set the correlationId.
        Parameters:
        correlationId - the correlationId
        Returns:
        the PutPolicyOptions builder
      • xKmsKeyRing

        public PutPolicyOptions.Builder xKmsKeyRing​(String xKmsKeyRing)
        Set the xKmsKeyRing.
        Parameters:
        xKmsKeyRing - the xKmsKeyRing
        Returns:
        the PutPolicyOptions builder
      • policy

        public PutPolicyOptions.Builder policy​(String policy)
        Set the policy.
        Parameters:
        policy - the policy
        Returns:
        the PutPolicyOptions builder